Introducing npm Teams! Private packages + team management tools.Learn more »

sets-equal

1.0.0 • Public • Published

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.

Install

npm i sets-equal

DownloadsWeekly Downloads

5

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar