MCPcopy Create free account
hub / github.com/chartjs/Chart.js / parse

Method parse

src/scales/scale.linearbase.js:175–184  ·  view source on GitHub ↗
(raw, index)

Source from the content-addressed store, hash-verified

173 }
174
175 parse(raw, index) { // eslint-disable-line no-unused-vars
176 if (isNullOrUndef(raw)) {
177 return null;
178 }
179 if ((typeof raw === 'number' || raw instanceof Number) && !isFinite(+raw)) {
180 return null;
181 }
182
183 return +raw;
184 }
185
186 handleTickRangeOptions() {
187 const {beginAtZero} = this.options;

Callers

nothing calls this directly

Calls 1

isNullOrUndefFunction · 0.85

Tested by

no test coverage detected