function isWeakMap
Jump to headingisWeakMap(object: unknown): object is WeakMap<object, unknown>
Returns true
if the value is a built-in WeakMap
instance.
util.types.isWeakMap(new WeakMap()); // Returns true
Parameters Jump to heading
Jump to headingobject: unknown
Return Type Jump to heading
object is WeakMap<object, unknown>