array.some instead of forEach code example
Example: array javascript some vs every
// Array.prototype.some = at least one element passes the test
// Array.prototype.every = all elements pass the test
// Array.prototype.some = at least one element passes the test
// Array.prototype.every = all elements pass the test