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

Function cloneChunk

libs/echarts/echarts.simple.js:30062–30066  ·  view source on GitHub ↗
(originalChunk)

Source from the content-addressed store, hash-verified

30060}
30061
30062function cloneChunk(originalChunk) {
30063 var Ctor = originalChunk.constructor;
30064 // Only shallow clone is enough when Array.
30065 return Ctor === Array ? originalChunk.slice() : new Ctor(originalChunk);
30066}
30067
30068var TRANSFERABLE_PROPERTIES = [
30069 'hasItemOption', '_nameList', '_idList', '_invertedIndicesMap',

Callers 1

cloneDimStoreFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected