-
Notifications
You must be signed in to change notification settings - Fork 0
some
Subhajit Sahu edited this page Dec 28, 2022
·
15 revisions
Check if any value satisfies a test.
function some(x, ft)
// x: ilists
// ft: test function (v, k, x)
const xilists = require('extra-ilists');
var x = [['a', 'b', 'c', 'd'], [1, 2, -3, -4]];
xilists.some(x, v => v > 10);
// → false
xilists.some(x, v => v < 0);
// → true