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

Function isDataStructure

src/utils/isDataStructure.ts:9–20  ·  view source on GitHub ↗
(
  value: unknown
)

Source from the content-addressed store, hash-verified

7 * provided by Immutable.js or a plain Array or Object.
8 */
9export default function isDataStructure(
10 value: unknown
11): value is
12 | Collection<unknown, unknown>
13 | Record<object>
14 | Array<unknown>
15 | object {
16 return (
17 typeof value === 'object' &&
18 (isImmutable(value) || Array.isArray(value) || isPlainObj(value))
19 );
20}

Callers 7

toJSFunction · 0.85
updateInDeeplyFunction · 0.85
removeFunction · 0.85
hasFunction · 0.85
setFunction · 0.85
mergeWithSourcesFunction · 0.85
deepMergerFunction · 0.85

Calls 1

isImmutableFunction · 0.90

Tested by

no test coverage detected