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

Function indexOf

libs/echarts/echarts-en.simple.js:462–474  ·  view source on GitHub ↗

* 查询数组中元素的index * @memberOf module:zrender/core/util

(array, value)

Source from the content-addressed store, hash-verified

460 * @memberOf module:zrender/core/util
461 */
462function indexOf(array, value) {
463 if (array) {
464 if (array.indexOf) {
465 return array.indexOf(value);
466 }
467 for (var i = 0, len = array.length; i < len; i++) {
468 if (array[i] === value) {
469 return i;
470 }
471 }
472 }
473 return -1;
474}
475
476/**
477 * 构造类继承关系

Callers 7

parseFinderFunction · 0.70
makeStyleMapperFunction · 0.70
makeDepndencyGraphFunction · 0.70
getAvailableDependenciesFunction · 0.70
getDependenciesFunction · 0.70
cloneListForMapAndSampleFunction · 0.70

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected