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

Function isTuplePoint

examples/annotations/main.ts:13–13  ·  view source on GitHub ↗
(p: DataPoint)

Source from the content-addressed store, hash-verified

11// Type guard for the tuple form of DataPoint. We define this explicitly because `Array.isArray(...)`
12// narrows to `any[]`, which does not reliably narrow `readonly [...]` tuples in strict TS configs.
13const isTuplePoint = (p: DataPoint): p is readonly [x: number, y: number, size?: number] => Array.isArray(p);
14
15type DisposableResizeObserver = Pick<ResizeObserver, 'observe' | 'unobserve' | 'disconnect'>;
16

Callers 2

findExtremaFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected