sets-equal
v1.0.0
Published
Check if two Sets contain all the same values
Downloads
25
Maintainers
Readme
sets-equal
Check if two Sets contain all the same values.
Example
import setsEqual from 'sets-equal';
const A = Symbol('A');
const B = Symbol('B');
const C = Symbol('C');
const one = new Set([A, B, C]);
const two = new Set([C, B, A]);
const result = setsEqual(one, two);
console.log(result); // => true
Installing
$ npm install --save j-/sets-equal
Building
Will output to dist/sets-equal.js.
$ npm install && npm run build
Testing
$ npm install && npm test