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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i sets-equal

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • j-