MCPcopy
hub / github.com/tinyplex/tinybase / replaceUndefinedString

Function replaceUndefinedString

src/common/json.ts:21–28  ·  view source on GitHub ↗
(obj: any)

Source from the content-addressed store, hash-verified

19 replaceUndefinedString(jsonParse(str));
20
21const replaceUndefinedString = (obj: any): any =>
22 obj === UNDEFINED
23 ? undefined
24 : isArray(obj)
25 ? arrayMap(obj, replaceUndefinedString)
26 : isObject(obj)
27 ? objMap(obj, replaceUndefinedString)
28 : obj;

Callers 1

jsonParseWithUndefinedFunction · 0.70

Calls 4

isArrayFunction · 0.90
arrayMapFunction · 0.90
isObjectFunction · 0.90
objMapFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…