@yjl9903/setmap
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

SetMap

Node.js CI

Use Hash to check whether two sets are equal.

Install

yarn add @yjl9903/setmap

Usage

const a = { a: 1 };
const b = { b: 2 };
const c = { c: 3 };

const set = new SetSet<object>([a]);

set.has([a]); // true
set.has([b]); // false

set.add([a, b, c]); // true

set.has([a, c, b]); // true
set.has([b, a, c]); // true
set.has([b, c, a]); // true
set.has([c, a, b]); // true
set.has([c, b, a]); // true

set.has([a, b]); // false
set.has([a, c]); // false
set.has([b, c]); // false

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @yjl9903/setmap

Weekly Downloads

1

Version

1.0.7

License

MIT

Unpacked Size

9.9 kB

Total Files

6

Last publish

Collaborators

  • yjl9903