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

Function assert

examples/acceptance/zoom-state.ts:6–8  ·  view source on GitHub ↗
(condition: unknown, message: string)

Source from the content-addressed store, hash-verified

4// This file is excluded from the library build (tsconfig excludes `examples/`).
5
6const assert = (condition: unknown, message: string): void => {
7 if (!condition) throw new Error(message);
8};
9
10const assertRange = (
11 label: string,

Callers 1

zoom-state.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected