utility_rt
v1.0.7
Published
Common utility fuctions for daily use
Downloads
3
Readme
predicate - Function that returns true or false.
Description If predicate returns true for any item, some returns true. Otherwise it returns false.
If predicate returns true for any item, some returns true. Otherwise it returns false
const equalstest = (x) => x === 5;
checkPredicate(equalstest, [5]); // true checkPredicate(equalstest, [5, 5, 5]); // true checkPredicate(equalstest, [1, 2, 5]); // true checkPredicate(equalstest, [2]); // false