Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 353 Bytes

readme.md

File metadata and controls

19 lines (11 loc) · 353 Bytes

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