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

Function assert

examples/acceptance/sampling-config.ts:8–10  ·  view source on GitHub ↗
(condition, message)

Source from the content-addressed store, hash-verified

6// This file is excluded from the library build (tsconfig excludes `examples/`).
7
8const assert: (condition: unknown, message: string) => asserts condition = (condition, message) => {
9 if (!condition) throw new Error(message);
10};
11
12const isTupleDataPoint: (point: unknown) => point is DataPointTuple = (point): point is DataPointTuple =>
13 Array.isArray(point);

Callers 1

sampling-config.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected