MCPcopy
hub / github.com/apache/echarts / parse

Method parse

src/scale/Time.ts:271–274  ·  view source on GitHub ↗
(val: number | string | Date)

Source from the content-addressed store, hash-verified

269 }
270
271 static parse(val: number | string | Date): number {
272 // `val` might be a float (e.g., calculated from percent), so call `round`.
273 return isNumber(val) ? Math.round(val) : +numberUtil.parseDate(val);
274 }
275
276}
277

Callers 15

simpleRequire.jsFile · 0.45
loadJSONFunction · 0.45
kFunction · 0.45
processFunction · 0.45
jquery.min.jsFile · 0.45
cli.jsFile · 0.45
util.jsFile · 0.45
cli.jsFile · 0.45
runTestPageFunction · 0.45
genReport.jsFile · 0.45
store.jsFile · 0.45
startFunction · 0.45

Calls 1

isNumberFunction · 0.85

Tested by

no test coverage detected