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