WeakMap implementation has been updated

Published: | Categories: JavaScript

Description

The implementation of WeakMap has been updated for the latest spec, and the optional second fallback argument of the get method has been removed. Also, the get, has and delete methods now return undefined instead of throwing a TypeError when the key argument is not an object or cannot be found.

References