ES6 Tutorial 15: Weakmaps

preview_player
Показать описание
Learn what are Weakmaps in ECMAScript6 and how to work with them.
Рекомендации по теме
Комментарии
Автор

Wow! Interesting approach to make properties non-writable. Why don't you make a video about WeakMap to underline, how the WeakMap can deal with JS garbage collector with examples of using it in that case.

st.petesburg
Автор

Just a heads up, might want to add an annotation - keys of weakmaps must be objects only as of Jan 29, 2017th

compeng
Автор

Sth is wrong here. Strings cannot be used as WeakMap-Keys because they are ref-by-copy

bobkelso