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

Function isJsonType

src/common/cell.ts:59–60  ·  view source on GitHub ↗
(type: any)

Source from the content-addressed store, hash-verified

57 isUndefined(cellOrValue) || !isUndefined(getCellOrValueType(cellOrValue));
58
59export const isJsonType = (type: any): boolean =>
60 type == OBJECT || type == ARRAY;
61
62export const encodeIfJson = <CV extends Cell | Value>(value: CV): CV =>
63 isObject(value) || isArray(value)

Callers 3

getValidatedCellFunction · 0.90
getValidatedValueFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…