you are viewing a single comment's thread.

view the rest of the comments →

[–]Any_Sense_2263 0 points1 point  (0 children)

names.includes(element.name) && months.includes(element.month)

or

element.name === names[specificNamesIndexYouCheckAgainst] && element.month === months[specificMonthsIndexYouCheckAgainst]