Skip to content

Instantly share code, notes, and snippets.

@kepta

kepta/block7.js Secret

Created April 11, 2018 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kepta/12b3ab1d8a821cdad5bc2686f386b72c to your computer and use it in GitHub Desktop.
Save kepta/12b3ab1d8a821cdad5bc2686f386b72c to your computer and use it in GitHub Desktop.
var obj = {name: 'dog'};
weakMap.set(obj, 'animal');
obj.name = 'human';
weakMap.get(obj); // 'animal'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment