1.0.0 • Published 8 years ago

sets-equal v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

sets-equal

master branch build status

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

License

MIT license.