Checks if the given value is WeakRef (opens in a new tab).
Syntax
import { isWkRef } from '@opentf/std';
isWkRef(value: unknown): boolean;
Examples
isWkRef({}) //=> false
let user = { name: "John" };
isWkRef(new WeakRef(user)) //=> true
Checks if the given value is WeakRef (opens in a new tab).
import { isWkRef } from '@opentf/std';
isWkRef(value: unknown): boolean;
isWkRef({}) //=> false
let user = { name: "John" };
isWkRef(new WeakRef(user)) //=> true