Both the JavaScript WeakSet and WeakMap ES2015 standard built-in objects are JS structures with which I have little experience using. I know that the weak part of WeakMap/WeakSet refers to references in those objects being held weakly. But what are some good scenarios in which these objects (particularly the WeakSet) are ideal to use?
Asked
Active
Viewed 108 times
2
IsenrichO
- 4,251
- 3
- 18
- 31