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

Function isEncodedJson

src/common/cell.ts:67–68  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

65 : value;
66
67export const isEncodedJson = (value: any): value is string =>
68 isString(value) && value[0] == JSON_PREFIX;
69
70export const decodeIfJson = <
71 CV extends Cell | Value | CellOrUndefined | ValueOrUndefined,

Callers 3

getValidatedCellFunction · 0.90
getValidatedValueFunction · 0.90
decodeIfJsonFunction · 0.70

Calls 1

isStringFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…