@extra-map/is-disjoint.min

Checks if maps have no common keys.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@extra-map/is-disjoint.min
312.2.152 years ago2 years agoMinified + gzip package size for @extra-map/is-disjoint.min in KB

Readme

Checks if maps have no common keys. :package: :smileycat: :running: :vhs: :moon: :scroll: :newspaper: :bluebook:
Similar: union, intersection, difference, symmetricDifference, isDisjoint.

This is part of package extra-map.

This is browserified, minified version of @extra-map/is-disjoint.
It is exported as global variable mapisDisjoint.
CDN: unpkg
, jsDelivr.



map.isDisjoint(x, y);
// x: a map
// y: another map

const map = require("extra-map");

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

var y = new Map([["d", 4]]);
map.isDisjoint(x, y);
// true



References