-
Notifications
You must be signed in to change notification settings - Fork 1
every
Subhajit Sahu edited this page Dec 2, 2022
·
17 revisions
Check if all values satisfy a test.
function every(x, ft)
// x: a set
// ft: test function (v, v, x)
const set = require('extra-set');
var x = new Set([1, 2, -3, -4]);
set.every(x, v => v > 0);
// → false
set.every(x, v => v > -10);
// → true