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

Method evaluate

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

Source from the content-addressed store, hash-verified

202 }
203 // Performance sensitive.
204 evaluate(lval: unknown): boolean {
205 let eqResult = lval === this._rval;
206 if (!eqResult) {
207 const lvalTypeof = typeof lval;
208 if (lvalTypeof !== this._rvalTypeof && (lvalTypeof === 'number' || this._rvalTypeof === 'number')) {
209 eqResult = numericToNumber(lval) === this._rvalFloat;
210 }
211 }
212 return this._isEQ ? eqResult : !eqResult;
213 }
214}
215
216type OrderRelationOperator = 'lt' | 'lte' | 'gt' | 'gte';

Callers

nothing calls this directly

Calls 1

numericToNumberFunction · 0.90

Tested by

no test coverage detected