MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / cloneValue

Function cloneValue

libs/echarts/echarts.simple.js:4282–4297  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

4280}
4281
4282function cloneValue(value) {
4283 if (isArrayLike(value)) {
4284 var len = value.length;
4285 if (isArrayLike(value[0])) {
4286 var ret = [];
4287 for (var i = 0; i < len; i++) {
4288 ret.push(arraySlice.call(value[i]));
4289 }
4290 return ret;
4291 }
4292
4293 return arraySlice.call(value);
4294 }
4295
4296 return value;
4297}
4298
4299function rgba2String(rgba) {
4300 rgba[0] = Math.floor(rgba[0]);

Callers 1

echarts.simple.jsFile · 0.70

Calls 2

pushMethod · 0.80
isArrayLikeFunction · 0.70

Tested by

no test coverage detected