side-channel-map@1.0.1
// Store information about any JS value in a side channel, using a Map
$ npm install side-channel-map
downloads/wk
125,534,150
license
MIT
version
1.0.1
published
Dec 11, 2024
What is side-channel-map?
Side-channel-map lets you associate metadata or additional information with any JavaScript value without modifying the value itself, using an internal Map to store the data separately. A developer would use this when they need to attach properties to primitives, frozen objects, or other values that can't be directly modified, or when they want to keep associated data completely separate from the object being tracked.
Links
Dependencies (4)
Maintainers
ljharb