MCPcopy Index your code
hub / github.com/simstudioai/sim / isTableRowArray

Function isTableRowArray

apps/sim/lib/workflows/subblocks/display.ts:55–65  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

53}
54
55const isTableRowArray = (value: unknown): value is WorkflowTableRow[] => {
56 if (!Array.isArray(value) || value.length === 0) return false
57 const firstItem = value[0]
58 return (
59 typeof firstItem === 'object' &&
60 firstItem !== null &&
61 'id' in firstItem &&
62 'cells' in firstItem &&
63 typeof firstItem.cells === 'object'
64 )
65}
66
67const isFieldFormatArray = (value: unknown): value is FieldFormat[] => {
68 if (!Array.isArray(value) || value.length === 0) return false

Callers 1

getDisplayValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected