MCPcopy Index your code
hub / github.com/apache/echarts / extentHasValue

Function extentHasValue

src/util/model.ts:1284–1288  ·  view source on GitHub ↗
(extent: number[])

Source from the content-addressed store, hash-verified

1282 * `extent` may contain `Infinity` / `NaN`, but assume no `null`/`undefined`.
1283 */
1284export function extentHasValue(extent: number[]): boolean {
1285 // Also considered extent may have `NaN` and `Infinity`.
1286 const span = extent[1] - extent[0];
1287 return isFinite(span) && span >= 0;
1288}
1289
1290/**
1291 * NOTE: considered items are null/undefined/NaN - do nothing for this case.

Callers 1

constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…