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

Function HashMap

libs/echarts/echarts.simple.js:847–861  ·  view source on GitHub ↗

* @constructor * @param {Object} obj Only apply `ownProperty`.

(obj)

Source from the content-addressed store, hash-verified

845 * @param {Object} obj Only apply `ownProperty`.
846 */
847function HashMap(obj) {
848 var isArr = isArray(obj);
849 // Key should not be set on this, otherwise
850 // methods get/set/... may be overrided.
851 this.data = {};
852 var thisMap = this;
853
854 (obj instanceof HashMap)
855 ? obj.each(visit)
856 : (obj && each$1(obj, visit));
857
858 function visit(value, key) {
859 isArr ? thisMap.set(value, key) : thisMap.set(key, value);
860 }
861}
862
863HashMap.prototype = {
864 constructor: HashMap,

Callers

nothing calls this directly

Calls 2

isArrayFunction · 0.70
each$1Function · 0.70

Tested by

no test coverage detected