-
Notifications
You must be signed in to change notification settings - Fork 0
isDisjoint
Subhajit Sahu edited this page Jun 18, 2020
·
14 revisions
Checks if lists have no common keys. 🏃 📼 📦 🌔 📒
Similar: union, intersection, difference, symmetricDifference, isDisjoint.
lists.isDisjoint(x, y);
// x: lists
// y: another lists
const lists = require('extra-lists');
var x = [['a', 'b', 'c'], [1, 2, 3]];
var x = [['c', 'd'], [3, 4]];
lists.isDisjoint(x, y);
// false
var x = [['d'], [4]];
lists.isDisjoint(x, y);
// true