Urara-Blog/node_modules/.pnpm-store/v3/files/a2/d80f462e2ab3621fe420372f387f756029518b11c12e53affcdf848850a536f4d036e2fffedcf9d39b70d359474e9ef8d2635b338e5bc41b68e9b7b9cd33ce
2022-08-14 01:14:53 +08:00

20 lines
437 B
Text

/**
* Appends the elements of `values` to `array`.
*
* @private
* @param {Array} array The array to modify.
* @param {Array} values The values to append.
* @returns {Array} Returns `array`.
*/
function arrayPush(array, values) {
var index = -1,
length = values.length,
offset = array.length;
while (++index < length) {
array[offset + index] = values[index];
}
return array;
}
module.exports = arrayPush;