JS Methods That Blew My Mind - Array.prototype.every() & Array.prototype.some()
Okay, I've used forEach(), map(), filter() and my good old reliable friend for loop on arrays, but what the heck is every() and why/when would I need it?
Array.prototype.every()
The every() method tests whether all elements in the array pass the test...
bzzz.hashnode.dev3 min read