-
Notifications
You must be signed in to change notification settings - Fork 1
some
Subhajit Sahu edited this page May 17, 2020
·
20 revisions
Checks if any value satisfies a test. 🏃 [:vhs:] 📦 🌔 📒
iterable.some(x, [fn], [ths]);
// x: an iterable
// fn: test function (v, i ,x)
// ths: this argument
const iterable = require('extra-iterable');
var x = [1, 2, -3, -4];
iterable.some(x, v => v > 10);
// false
iterable.some(x, v => v < 0);
// true