MCPcopy Index your code
hub / github.com/deployd/deployd / copyArray

Function copyArray

test-app/public/sinon.js:15370–15379  ·  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

15368 * @returns {Array} Returns `array`.
15369 */
15370 function copyArray(source, array) {
15371 var index = -1,
15372 length = source.length;
15373
15374 array || (array = Array(length));
15375 while (++index < length) {
15376 array[index] = source[index];
15377 }
15378 return array;
15379 }
15380
15381 /**
15382 * 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