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

Function validIndex

src/scales/scale.category.js:23–23  ·  view source on GitHub ↗
(index, max)

Source from the content-addressed store, hash-verified

21}
22
23const validIndex = (index, max) => index === null ? null : _limitValue(Math.round(index), 0, max);
24
25function _getLabelForValue(value) {
26 const labels = this.getLabels();

Callers 1

parseMethod · 0.85

Calls 1

_limitValueFunction · 0.85

Tested by

no test coverage detected