mild-map
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

MildMap

A WeakMap that supports any value, it holds strong references to primitives, and weak references to objects.

Install

npm install --save mild-map

Usage

It has the same API of a WeakMap, except that it just works with primitives too.

It also implements the size property, like a Map.

License

MIT © Fabio Spampinato

/mild-map/

    Package Sidebar

    Install

    npm i mild-map

    Weekly Downloads

    4

    Version

    1.1.1

    License

    none

    Unpacked Size

    8.4 kB

    Total Files

    9

    Last publish

    Collaborators

    • fabiospampinato