DEV Community

Discussion on: WeakMap in JavaScript - An Easy Introduction

Collapse
 
kretaceous profile image
Abhijit Hota • Edited

Hey, great read! I actually didn't know the use cases for them and the security factor you talked about made some sense. Thanks for the article!

I believe there are some typos in the examples of the sections:

  • Retrieving Values: from the 4th last line, the comments should say myObj4, as that is the inexistent object.
  • Removing Elements: the last line of code (not comment) should take in myObj3 as an argument.