Last active
July 6, 2018 19:59
-
-
Save nairihar/1704286efa017b548c1395f3b2fc8819 to your computer and use it in GitHub Desktop.
JavaScript series, part 3, WeakMap and WeakSet, medium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const weakMap = new WeakMap(); // be sure you using custom WeakMap not native | |
const obj = Object.freeze({ hello: true }); | |
weakMap.set(obj, 12); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment