🔗 A module for merging WeakSets and WeakMaps.
-
Updated
Oct 15, 2024 - TypeScript
🔗 A module for merging WeakSets and WeakMaps.
Which kind of Collection (Map, Set, WeakMap, WeakSet) is this JavaScript value? Works cross-realm, without `instanceof`, and despite Symbol.toStringTag.
🎁 ES6 Map, Set, WeakMap and WeakSet polyfill in pure ES5
Playground for ECMAScript 2015 (ES6)
Is this value a JS WeakSet? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Is this value a JS WeakMap? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
[Node.js] Returns true if a value can be used as a WeakSet item or a WeakMap key.
Weak data collections without the limitations
JavaScript Next features and their demos
The Weak library provides a Weak::Map class to store a key-value map and a Weak::Set class to store an unordered list of objects. The collection classes only hold weak references to all elements so they can be garbage-collected when there are no more references left.
[Node.js] It’s like WeakSet but it supports non-objects.
Add a description, image, and links to the weakset topic page so that developers can more easily learn about it.
To associate your repository with the weakset topic, visit your repo's landing page and select "manage topics."