MCPcopy Index your code
hub / github.com/immutable-js/immutable-js / isSet

Function isSet

src/predicates/isSet.ts:10–16  ·  view source on GitHub ↗
(maybeSet: unknown)

Source from the content-addressed store, hash-verified

8 * Also true for OrderedSets.
9 */
10export function isSet(maybeSet: unknown): maybeSet is Set<unknown> {
11 return Boolean(
12 maybeSet &&
13 // @ts-expect-error: maybeSet is typed as `{}`, need to change in 6.0 to `maybeSeq && typeof maybeSet === 'object' && MAYBE_SET_SYMBOL in maybeSet`
14 maybeSet[IS_SET_SYMBOL]
15 );
16}

Callers 3

constructorMethod · 0.90
isOrderedSetFunction · 0.90
partition.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected