ES6 Some vs Every

es6

I learned a neat trick today. You can’t break a javascript forEach loop but you can break a `some` and an `every` but there are specific rules.

`some` will only break when a value equivalent to true is returned `every` will only break when a value equivalent to false is returned

The reason is because these functions are accomplishing similar but different tasks. They each return an overall synopsys of what happened during each iteration.

For example:`some` will return `true` if SOME of the iterations return true.`every` will return `true` if EVERY of the iterations returns true.

This explains why sometime they run full length and sometimes they don’t. Depends on the needs!