MCPcopy
hub / github.com/flightcontrolhq/superjson / isDeep

Function isDeep

src/plainer.ts:117–123  ·  view source on GitHub ↗
(object: any, superJson: SuperJSON)

Source from the content-addressed store, hash-verified

115}
116
117const isDeep = (object: any, superJson: SuperJSON): boolean =>
118 isPlainObject(object) ||
119 isArray(object) ||
120 isMap(object) ||
121 isSet(object) ||
122 isError(object) ||
123 isInstanceOfRegisteredClass(object, superJson);
124
125function addIdentity(object: any, path: any[], identities: Map<any, any[][]>) {
126 const existingSet = identities.get(object);

Callers 1

walkerFunction · 0.85

Calls 6

isPlainObjectFunction · 0.85
isArrayFunction · 0.85
isMapFunction · 0.85
isSetFunction · 0.85
isErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…