MCPcopy
hub / github.com/tdewolff/minify / cloneValue

Function cloneValue

_benchmarks/sample_echarts.js:2887–2900  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

2885 }
2886 }
2887 function cloneValue(value) {
2888 if (isArrayLike(value)) {
2889 var len = value.length;
2890 if (isArrayLike(value[0])) {
2891 var ret = [];
2892 for (var i = 0; i < len; i++) {
2893 ret.push(arraySlice.call(value[i]));
2894 }
2895 return ret;
2896 }
2897 return arraySlice.call(value);
2898 }
2899 return value;
2900 }
2901 function rgba2String(rgba) {
2902 rgba[0] = Math.floor(rgba[0]);
2903 rgba[1] = Math.floor(rgba[1]);

Callers 3

sample_echarts.jsFile · 0.85
animateToShallowFunction · 0.85

Calls 1

isArrayLikeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…