Skip to content

isDisjoint

Subhajit Sahu edited this page Dec 22, 2022 · 14 revisions

Check if ientries have no common keys.

Similar: union, intersection, difference, symmetricDifference, isDisjoint.


function isDisjoint(x, y)
// x: ientries
// y: another ientries
const ientries = require('extra-ientries');

var x = [["a", 1], ["b", 2], ["c", 3]];
var y = [["c", 3], ["d", 4]];
ientries.isDisjoint(x, y);
// → false

var y = [["d", 4]];
ientries.isDisjoint(x, y);
// → true


References

Clone this wiki locally