zenparsing / es-abstract-refs

Abstract References Proposal for ECMAScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add an example showing the usage with Map

domenic opened this issue · comments

I am not sure why Map has these hooks defined. An example might help clarify.

I'm thinking of a situation where you want to associate data with some set of objects you don't own (like DOM elements) and you still need hold them strongly, for iteration or something. I haven't come up with a concrete scenario yet, though.