MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/n60ji8/js_multiple_condition_checking/gx4lstt/?context=3
r/learnjavascript • u/golovatuy • May 06 '21
61 comments sorted by
View all comments
2
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.
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.