isWeakMap es-toolkit
Checks if a given value is a WeakMap instance.
Usage
isWeakMap(value)
Use isWeakMap when you want to check if a value is a WeakMap instance. WeakMap is a key-value store with weak references to objects as keys, useful for preventing memory leaks.
Parameters
valueunknownrequired
The value to check if it's a WeakMap instance.
Returns
Returns true if the value is a WeakMap instance, false otherwise.
Source: es-toolkit
Re-exported verbatim from es-toolkit. Implementation, edge cases, and performance behavior are owned upstream. This page mirrors the documentation at the pinned version; the linked source is authoritative.