Skip to content

some

some(array, predicate) → boolean · Array

Check if any element in the array matches the predicate.

  • array (required): the array to test

  • predicate (required): lambda (element) -> boolean

utlx
some([1, 2, 3, 4], (x) -> x > 3)        // true
some([1, 2, 3], (x) -> x > 5)           // false

Released under AGPL-3.0.