Returns true when all of the items in iterable are truthy. An optional predicate function can be used to define what truthiness means for this specific collection.
true
True if all elements pass the test or are truthy else false.
True
false
all([0])// trueall([1, 2, 3])// trueall([2, 4, 6], n => n > 1)// true
any
Generated using TypeDoc
Returns
truewhen all of the items in iterable are truthy. An optional predicate function can be used to define what truthiness means for this specific collection.Returns
Trueif all elements pass the test or are truthy elsefalse.Example
See
any