You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
Referring to this use case:
https://github.com/tc39/proposal-weakrefs#iterable-weakmaps
If we would have
WeakMap.prototype.getEntries()method that will return current set of valid entries{key,value}then enumeration will be trivial:getEntries will return current WeakMap snapshot - not an iterator.
That is a) dead simple and b) will be sufficient for most cases.