Checks if the given value is WeakMap (opens in a new tab).
Syntax
import { isWkMap } from '@opentf/std';
isWkMap(value: unknown): boolean;
Examples
isWkMap(new Map()) //=> false
isWkMap(new WeakMap()) //=> true
Checks if the given value is WeakMap (opens in a new tab).
import { isWkMap } from '@opentf/std';
isWkMap(value: unknown): boolean;
isWkMap(new Map()) //=> false
isWkMap(new WeakMap()) //=> true