Skip to main content
function isWeakMap
isWeakMap(object: unknown): object is WeakMap<object, unknown>
Deprecated

Returns true if the value is a built-in WeakMap instance.

util.types.isWeakMap(new WeakMap());  // Returns true

Parameters

object: unknown

Return Type

object is WeakMap<object, unknown>
Back to top