2.2.10 • Published 4 years ago
@extra-lists/symmetric-difference.min v2.2.10
Gives entries not present in both lists. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:
Similar: union, intersection, difference, symmetricDifference, isDisjoint.
This is part of package extra-lists.
This is browserified, minified version of @extra-lists/symmetric-difference. It is exported as global variable lists_symmetricDifference. CDN: unpkg, jsDelivr.
lists.symmetricDifference(x, y);
// x: lists
// y: another lists
const lists = require('extra-lists');
var x = [['a', 'b', 'c', 'd'], [1, 2, 3, 4]];
var y = [['c', 'd', 'e', 'f'], [30, 40, 50, 60]];
lists.symmetricDifference(x, y).map(c => [...c]);
// [ [ 'a', 'b', 'e', 'f' ], [ 1, 2, 50, 60 ] ]
var y = [['d', 'e', 'f'], [40, 50, 60]];
lists.symmetricDifference(x, y).map(c => [...c]);
// [ [ 'a', 'b', 'c', 'e', 'f' ], [ 1, 2, 3, 50, 60 ] ]
References
2.2.10
4 years ago
2.2.9
4 years ago
2.2.8
4 years ago
2.2.7
4 years ago
2.2.5
4 years ago
2.2.4
4 years ago
2.2.3
4 years ago
2.2.2
4 years ago
2.2.0
4 years ago
2.1.3
4 years ago
2.1.6
4 years ago
2.1.5
4 years ago
2.1.8
4 years ago
2.1.7
4 years ago
2.1.2
4 years ago
2.1.1
4 years ago
2.1.0
4 years ago
2.0.91
4 years ago
2.0.90
4 years ago
2.0.89
4 years ago
2.0.88
4 years ago