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