2.2.15 • Published 4 years ago

@extra-map/symmetric-difference v2.2.15

Weekly downloads
38
License
MIT
Repository
github
Last release
4 years ago

Gives entries not present in both maps. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

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

This is part of package extra-map.

map.symmetricDifference(x, y);
// x: a map
// y: another map
const map = require("extra-map");

var x = new Map([["a", 1], ["b", 2], ["c", 3], ["d", 4]]);
var y = new Map([["c", 30], ["d", 40], ["e", 50], ["f", 60]]);
map.symmetricDifference(x, y);
// Map(4) { "a" => 1, "b" => 2, "e" => 50, "f" => 60 }

var y = new Map([["d", 40], ["e", 50], ["f", 60]]);
map.symmetricDifference(x, y);
// Map(5) { "a" => 1, "b" => 2, "c" => 3, "e" => 50, "f" => 60 }

References

2.2.15

4 years ago

2.2.14

4 years ago

2.2.13

4 years ago

2.2.11

4 years ago

2.2.12

4 years ago

2.2.10

4 years ago

2.2.8

4 years ago

2.2.7

4 years ago

2.2.6

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.2.3

5 years ago

2.2.2

5 years ago

2.2.5

5 years ago

2.2.4

5 years ago

2.1.43

5 years ago

2.1.41

5 years ago

2.1.42

5 years ago

2.1.40

5 years ago

2.1.38

5 years ago

2.1.39

5 years ago

2.1.36

5 years ago

2.1.37

5 years ago

2.1.34

5 years ago

2.1.35

5 years ago

2.1.33

5 years ago

2.1.32

5 years ago

2.1.31

5 years ago

2.1.29

5 years ago

2.1.30

5 years ago

2.1.28

5 years ago

2.1.27

5 years ago

2.1.26

5 years ago

2.1.25

5 years ago

2.1.23

5 years ago

2.1.24

5 years ago

2.1.22

5 years ago

2.1.18

5 years ago

2.1.19

5 years ago

2.1.21

5 years ago

2.1.20

5 years ago

2.1.17

5 years ago

2.1.16

5 years ago

2.1.14

5 years ago

2.1.15

5 years ago

2.1.13

5 years ago

2.1.12

5 years ago

2.1.10

5 years ago

2.1.11

5 years ago

2.1.9

5 years ago

2.1.8

5 years ago

2.1.7

5 years ago

2.1.6

5 years ago

2.1.5

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.4

5 years ago

2.1.3

5 years ago

2.1.0

5 years ago

2.0.149

5 years ago

2.0.148

5 years ago

2.0.150

5 years ago

2.0.147

5 years ago

2.0.146

5 years ago

2.0.145

5 years ago

2.0.144

5 years ago

2.0.143

5 years ago

2.0.142

5 years ago