@mothepro/loose-set
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

/@mothepro/loose-set/

    Package Sidebar

    Install

    npm i @mothepro/loose-set

    Weekly Downloads

    1

    Version

    1.0.0

    License

    Apache-2.0

    Unpacked Size

    26.1 kB

    Total Files

    19

    Last publish

    Collaborators

    • mothepro