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

Function map

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

* 数组映射 * @memberOf module:zrender/core/util * @param {Array} obj * @param {Function} cb * @param {*} [context] * @return {Array}

(obj, cb, context)

Source from the content-addressed store, hash-verified

559 * @return {Array}
560 */
561function map(obj, cb, context) {
562 if (!(obj && cb)) {
563 return;
564 }
565 if (obj.map && obj.map === nativeMap) {
566 return obj.map(cb, context);
567 }
568 else {
569 var result = [];
570 for (var i = 0, len = obj.length; i < len; i++) {
571 result.push(cb.call(context, obj[i], i, obj));
572 }
573 return result;
574 }
575}
576
577/**
578 * @memberOf module:zrender/core/util

Callers 15

mappingToExistsFunction · 0.70
queryDataIndexFunction · 0.70
clipPointsByRectFunction · 0.70
getPercentWithPrecisionFunction · 0.70
getDependenciesFunction · 0.70
createSeriesIndicesFunction · 0.70
parseRawOptionFunction · 0.70
seriesTaskResetFunction · 0.70
doDispatchActionFunction · 0.70
cloneListForMapAndSampleFunction · 0.70

Calls 2

mapMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected