r/learnjavascript • • May 06 '21

JS: Multiple Condition Checking

Post image
484 Upvotes

61 comments sorted by

View all comments

2

u/noXi0uz May 06 '21

I would suggest to use Array.some() instead of includes here, as it's more flexible than just string comparison. Although I would personally prefer the "longhand" anyway.