Home & blog

Tag: weak-maps

JavaScript maps and sets part 2: Weak maps

1 Jan 2021 weak-maps

In part two of this in-depth guide to JavaScript maps and sets we'll be looking at the weird, exotic world of weak maps. These are like maps, except the keys are always objects and the entries are "weakly held". We'll explore just what this means.