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

Function assert

examples/acceptance/animation-controller.ts:7–9  ·  view source on GitHub ↗
(condition: unknown, message: string)

Source from the content-addressed store, hash-verified

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

Callers 2

assertInClosedRangeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected