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

Function genName

libs/echarts/echarts.simple.js:32311–32321  ·  view source on GitHub ↗
(name, map$$1, fromZero)

Source from the content-addressed store, hash-verified

32309}
32310
32311function genName(name, map$$1, fromZero) {
32312 if (fromZero || map$$1.get(name) != null) {
32313 var i = 0;
32314 while (map$$1.get(name + i) != null) {
32315 i++;
32316 }
32317 name += i;
32318 }
32319 map$$1.set(name, true);
32320 return name;
32321}
32322
32323/*
32324* Licensed to the Apache Software Foundation (ASF) under one

Callers 1

completeDimensionsFunction · 0.70

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected