Returns true when any of the items in iterable are truthy. An optional predicate function can be used to define what truthiness means for this specific collection.
True if any element passes the test or is truthy else false.
True
false
any([0])// falseany([0, 1, null, undefined])// trueany([1, 4, 5] => (n) => n % 2 === 0)// true
all
Generated using TypeDoc
Returns true when any of the items in iterable are truthy. An optional predicate function can be used to define what truthiness means for this specific collection.
Returns
True
if any element passes the test or is truthy elsefalse
.Example
See
all