MCPcopy
hub / github.com/immutable-js/immutable-js / isImmutable

Function isImmutable

src/predicates/isImmutable.ts:20–24  ·  view source on GitHub ↗
(
  maybeImmutable: unknown
)

Source from the content-addressed store, hash-verified

18 * ```
19 */
20export function isImmutable(
21 maybeImmutable: unknown
22): maybeImmutable is Collection<unknown, unknown> | Record<object> {
23 return isCollection(maybeImmutable) || isRecord(maybeImmutable);
24}

Callers 12

fromJSWithFunction · 0.90
constructorMethod · 0.90
isDataStructureFunction · 0.90
updateInFunction · 0.90
updateInDeeplyFunction · 0.90
removeFunction · 0.90
hasFunction · 0.90
setFunction · 0.90
getFunction · 0.90
mergeWithSourcesFunction · 0.90
Predicates.tsFile · 0.85

Calls 2

isCollectionFunction · 0.90
isRecordFunction · 0.90

Tested by

no test coverage detected