Sha256: 46ca747f555bd0f7399eb6f8c221be73df5292bf1c57ad987214c65f4e0784dc
Contents?: true
Size: 454 Bytes
Versions: 167
Compression:
Stored size: 454 Bytes
Contents
/** * 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`. */ function arrayCopy(source, array) { var index = -1, length = source.length; array || (array = Array(length)); while (++index < length) { array[index] = source[index]; } return array; } module.exports = arrayCopy;
Version data entries
167 entries across 87 versions & 9 rubygems