-
Notifications
You must be signed in to change notification settings - Fork 0
isDisjoint
Subhajit Sahu edited this page Dec 22, 2022
·
14 revisions
Check if entries have no common keys.
Similar: union, intersection, difference, symmetricDifference, isDisjoint.
function isDisjoint(x, y)
// x: entries
// y: another entries
const entries = require('extra-entries');
var x = [["a", 1], ["b", 2], ["c", 3]];
var y = [["c", 3], ["d", 4]];
entries.isDisjoint(x, y);
// → false
var y = [["d", 4]];
entries.isDisjoint(x, y);
// → true