127 packages found
Standard library
ES spec-like internal slots
Standard library
Store information about any JS value in a side channel. Uses WeakMap if available.
ECMAScript6 WeakMap polyfill
Is this value a JS WeakSet? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Which kind of Collection (Map, Set, WeakMap, WeakSet) is this JavaScript value? Works cross-realm, without `instanceof`, and despite Symbol.toStringTag.
Is this value a JS WeakMap? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Pool of objects for primitives. (Make WeakMap accept primitive keys)
Standard library
Iterable WeakMaps and WeakSets. Provides WeakRefMap and WeakRefSet which store values using WeakRefs and clean themselves up when garbage collected.
A simple and intuitive way to shim private methods and properties in JavaScript.
List of all javascript types. Used and useful for checking, validation, sanitizing and testing. Like isStream, isPromise, isWeakset and etc.
- bool
- boolean
- buffer
- check
- checking
- error
- is
- is-boolean
- is-buffer
- is-error
- is-promise
- is-stream
- json
- kind
- View more
A bidirectional map based on the ES6 Map & WeakMap objects
Generic memoization with Map and WeakMap
A WeakMap shim for Node.js and browsers
WeakMap replacement to cache strings efficiently and fast
Standard library
Detect native WeakMap support.
WeakMap with an array of keys