function types.isWeakMap
Usage in Deno
import { types } from "node:util"; const { isWeakMap } = types;
isWeakMap(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
object is WeakMap<object, unknown>