The iterable object of interest.
The predicate function to invoke for each value.
true
if all values pass the test, false
otherwise.
Iteration terminates on the first false
predicate result.
Linear.
import { every } from '@lumino/algorithm';
let data = [5, 7, 1];
every(data, value => value % 2 === 0); // false
every(data, value => value % 2 === 1); // true
Generated using TypeDoc
Test whether all values in an iterable satisfy a predicate.