Skip to content

isDisjoint

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

Check if ilists have no common keys.

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


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

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

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


References

Clone this wiki locally