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

Function assert

examples/acceptance/lttb-sample.ts:9–11  ·  view source on GitHub ↗
(condition: unknown, message: string)

Source from the content-addressed store, hash-verified

7// Intent: validate that 100K -> 1K LTTB downsampling preserves peaks/valleys.
8
9const assert = (condition: unknown, message: string): void => {
10 if (!condition) throw new Error(message);
11};
12
13// Small deterministic PRNG (Mulberry32).
14function mulberry32(seed: number): () => number {

Callers 1

lttb-sample.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected