Need to know whether at least one item meets a condition? Call `some` on an array with a callback that tests each item. It returns a boolean: `true` if at least one item satisfies the condition, otherwise `false`. section 10.1.4 section 10.5
Check whether anyone has a weapon
`const ninjas = [{ name: "Yagyu", weapon: "shuriken" }, { name: "Yoshi" }];` `const someoneIsArmed = ninjas.some(ninja => "weapon" in ninja);` `console.assert(someoneIsArmed);` The callback checks for a `weapon` property. One matching object is enough for the result to be `true`. section 10.1.4
Choose `every` when all items must pass the test. Choose `find` when you need a matching item, or `filter` when you need the matching items. Use `some` when the answer you need is simply whether any item qualifies. section 10.1.4


