MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / toLabel

Function toLabel

packages/core/src/chart/index.ts:111–114  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

109}
110
111function toLabel(value: unknown): string {
112 if (value === null || value === undefined || value === '') return '(empty)'
113 return String(value)
114}
115
116function toNumber(value: unknown, field: string): number {
117 const num = typeof value === 'number' ? value : Number(value)

Callers 3

aggregateByLabelFunction · 0.85
buildLineDataFunction · 0.85
buildHeatmapDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected