some - nodef/extra-lists GitHub Wiki

Check if any value satisfies a test.

Similar: some, every.

function some(x, ft)
// x:  lists
// ft: test function (v, k, x)
const xlists = require('extra-lists');

var x = ['a', 'b', 'c', 'd'], [1, 2, -3, -4](/nodef/extra-lists/wiki/'a',-'b',-'c',-'d'],-[1,-2,--3,--4);
xlists.some(x, v => v > 10);
// → false

xlists.some(x, v => v < 0);
// → true

References