MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / compare

Function compare

libs/echarts/echarts.simple.js:22458–22468  ·  view source on GitHub ↗
(real, expect, operator)

Source from the content-addressed store, hash-verified

22456}
22457
22458function compare(real, expect, operator) {
22459 if (operator === 'min') {
22460 return real >= expect;
22461 }
22462 else if (operator === 'max') {
22463 return real <= expect;
22464 }
22465 else { // Equals
22466 return real === expect;
22467 }
22468}
22469
22470function indicesEquals(indices1, indices2) {
22471 // indices is always order by asc and has only finite number.

Callers 8

makeAscendingRunFunction · 0.70
binaryInsertionSortFunction · 0.70
gallopLeftFunction · 0.70
gallopRightFunction · 0.70
mergeLowFunction · 0.70
mergeHighFunction · 0.70
applyMediaQueryFunction · 0.70
leaflet-src.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected