#Javascript WeakMaps

Oscar Brito


WeakMaps are key/value maps in which keys are objects.
...they do not prevent garbage collection in case there would be no other reference to the object.



var wm1 = new WeakMap();
wm1.set(1, 37);



Note: A week after moving to Cork (Ireland) I've found some time to update blog.divhide.com with
some cool stuff. Hope everyone likes...


LINK:
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/WeakMap



Visit www.divhide.com for more informations, contacts and news about Web Development.
See other blog posts at blog.divhide.com.



Divhide purpose is to follow the HTML5 movement and contribute with applications which prove the quality of technology.


Feel free to contact divhide.