MCPcopy
hub / github.com/chartjs/Chart.js / numberOrZero

Function numberOrZero

src/helpers/helpers.options.ts:43–43  ·  view source on GitHub ↗
(v: unknown)

Source from the content-addressed store, hash-verified

41}
42
43const numberOrZero = (v: unknown) => +v || 0;
44
45/**
46 * @param value

Callers 1

_readValueToPropsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected