I have been working with WeakMaps in JavaScript, and after checking the documentation I realized that the clear
method has been deprecated / removed from ECMAScript 6.
What is the reason for this? Why force us to do a clear function like:
clear() {
this._weakmap = new WeakMap()
}