Kaizen
Browse modulesInsightsinsights/serverFunctions

Function: isJsonObject()

function isJsonObject(value: JsonValue | undefined): value is { [key: string]: JsonValue };

Defined in: server/insights/ask/parse-draft.ts:133

True for a JSON object (not an array, not null, not absent). Accepts undefined so it composes with indexed access under noUncheckedIndexedAccess.

Parameters

ParameterType
valueJsonValue | undefined

Returns

value is { [key: string]: JsonValue }

On this page