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

1.1.2 • Public • Published

MildMap

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

Install

npm install 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

Readme

Keywords

Package Sidebar

Install

npm i mild-map

Weekly Downloads

15

Version

1.1.2

License

MIT

Unpacked Size

5.07 kB

Total Files

7

Last publish

Collaborators

  • fabiospampinato