MCPcopy
hub / github.com/Kong/insomnia / copyArray

Function copyArray

packages/insomnia/bin/yarn-standalone.js:12392–12401  ·  view source on GitHub ↗

* Copies the values of `source` to `array`. * * @private * @param {Array} source The array to copy values from. * @param {Array} [array=[]] The array to copy values to. * @returns {Array} Returns `array`.

(source, array)

Source from the content-addressed store, hash-verified

12390 * @returns {Array} Returns `array`.
12391 */
12392 function copyArray(source, array) {
12393 var index = -1,
12394 length = source.length;
12395
12396 array || (array = Array(length));
12397 while (++index < length) {
12398 array[index] = source[index];
12399 }
12400 return array;
12401 }
12402
12403 /**
12404 * Copies properties of `source` to `object`.

Callers 12

lazyCloneFunction · 0.85
arraySampleSizeFunction · 0.85
arrayShuffleFunction · 0.85
baseCloneFunction · 0.85
baseMergeDeepFunction · 0.85
basePullAllFunction · 0.85
reorderFunction · 0.85
wrapperCloneFunction · 0.85
concatFunction · 0.85
toArrayFunction · 0.85
mixinFunction · 0.85
toPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected