all
Callable
Type parameters
- T
The element type.
Parameters
xs: Traversable<T, unknown>
The values to check.
predicate: (x: T) => boolean
The predicate that will be checked on every element.
Returns boolean
Whether all elements satisfy the predicate.
- T
The function tests whether all elements in the Traversable satisfy the predicate.
Example
Alternatives
Proposals
Iterator.prototype.every
every