re: JavaScript: Reduce the number of conditional operators used in the expression VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION
 

Definitely agree using every and some are the way to go. You could simplify further by using Boolean like so, conditionArray.every(Boolean)

 

Nice, haven't tried it, however, won't it evaluate as true for Boolean being an object?

code of conduct - report abuse