How do I clone a “WeakMap” or “WeakSet” in Javascript?
I know that WeakMap and WeakSet are not iterable for security reasons, that is, “to prevent attackers from seeing the garbage collector’s internal beh ...