Posted On: Feb 22, 2018
WeakMaps provide a way to extend objects from the outside without interfering with garbage collection. Whenever you want to extend an object but can't because it is sealed - or from an external source - a WeakMap can be applied. WeakMap was also introduced by ES6 in 2015
Further reading : WeakMap in ES6
Never Miss an Articles from us.