MCPcopy Index your code
hub / github.com/tinyplex/tinybase / jsonParseWithUndefined

Function jsonParseWithUndefined

src/common/json.ts:17–19  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

15 jsonString(obj, (_key, value) => (isUndefined(value) ? UNDEFINED : value));
16
17export const jsonParseWithUndefined = (str: string): any =>
18 // JSON.parse reviver removes properties with undefined values
19 replaceUndefinedString(jsonParse(str));
20
21const replaceUndefinedString = (obj: any): any =>
22 obj === UNDEFINED

Callers 6

getPersistedFunction · 0.90
storageListenerFunction · 0.90
getPersistedFunction · 0.90
getPersistedFunction · 0.90
getPersistedFunction · 0.90
receivePayloadRemainderFunction · 0.90

Calls 1

replaceUndefinedStringFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…