re: Evaluate all values in an array in Javascript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I'd avoid using Array.prototype.every in this way. It too will exit as soon as an entry returns false. MDN - array.prototype.every It's not becaus...
 

I thought the same! Good catch. All array methods that rely on the iteratee to return a boolean will stop execution as soon as possible.

 

I am still relatively new to Javascript so I appreciate this (I guess Stack Overflow doesn't always have the best solution haha). I will update my code. Thank you both!

code of conduct - report abuse