MCPcopy Create free account
hub / github.com/apache/echarts / evaluate

Method evaluate

src/data/helper/dataValueHelper.ts:135–140  ·  view source on GitHub ↗
(lval: unknown)

Source from the content-addressed store, hash-verified

133 }
134 // Performance sensitive.
135 evaluate(lval: unknown): boolean {
136 // Most cases is 'number', and typeof maybe 10 times faseter than parseFloat.
137 return isNumber(lval)
138 ? this._opFn(lval, this._rvalFloat)
139 : this._opFn(numericToNumber(lval), this._rvalFloat);
140 }
141}
142
143export class SortOrderComparator {

Callers

nothing calls this directly

Calls 2

numericToNumberFunction · 0.90
isNumberFunction · 0.85

Tested by

no test coverage detected