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

Method parse

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

isNullOrUndefFunction · 0.85

Tested by

no test coverage detected