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
Test whether all values in an iterable satisfy a predicate.