@mothepro/loose-set
v1.0.0
Published
ES6 Set with loose type checking
Downloads
3
Readme
Loose Set
ES6 Set with loose type checking
Install
yarn add @mothepro/loose-set
How to Use
Just like a normal ES6 Set, however object identical literals will match each other.
const set = new LooseSet
set
.add({ hello: 'world' })
.add({ hello: 'world' })
set.size == 1
set.has({ hello: 'world' }) == true