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: ```JS for(let entry of weakMap.getEntries()) ... ``` getEntries will return current WeakMap **snapshot** - not an iterator. That is a) dead simple and b) will be sufficient for most cases.
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.