4 ms·
JS has Set and WeakSet, and Set is more powerful (it allows a wider variety of key types). It's actually quite rare for you to need a WeakSet.
by kevingadd 12y ago
JS has Set and WeakSet, and Set is more powerful (it allows a wider variety of key types). It's actually quite rare for you to need a WeakSet.