MCPcopy Create free account
hub / github.com/Exrick/xpay / arrayCopy

Function arrayCopy

xpay-code/src/main/resources/static/swagger/swagger-ui.js:14593–14602  ·  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

14591 * @returns {Array} Returns `array`.
14592 */
14593function arrayCopy(source, array) {
14594 var index = -1,
14595 length = source.length;
14596
14597 array || (array = Array(length));
14598 while (++index < length) {
14599 array[index] = source[index];
14600 }
14601 return array;
14602}
14603
14604module.exports = arrayCopy;
14605

Callers 5

baseCloneFunction · 0.85
wrapperFunction · 0.85
mergeDataFunction · 0.85
reorderFunction · 0.85
wrapperCloneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected