Checks if the given value is WeakMap.

Syntax

TypeScript
import { isWeakMap } from '@opentf/std';

isWeakMap(value: unknown): val is WeakMap<WeakKey, unknown>

Examples

TypeScript
isWeakMap(new Map()) //=> false

isWeakMap(new WeakMap()) //=> true
Last updated on
Edit this page