MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / isTupleOHLCDataPoint

Function isTupleOHLCDataPoint

src/ChartGPU.ts:159–159  ·  view source on GitHub ↗
(p: OHLCDataPoint)

Source from the content-addressed store, hash-verified

157
158const isTupleDataPoint = (p: DataPoint): p is DataPointTuple => Array.isArray(p);
159const isTupleOHLCDataPoint = (p: OHLCDataPoint): p is OHLCDataPointTuple => Array.isArray(p);
160
161const getPointXY = (p: DataPoint): { readonly x: number; readonly y: number } => {
162 if (isTupleDataPoint(p)) return { x: p[0], y: p[1] };

Callers 3

getOHLCTimestampFunction · 0.70
getOHLCCloseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected