• File: _arrayPush.js
  • Full Path: /var/www/nodejs/callDir/node_modules/lodash/_arrayPush.js
  • Date Modified: 06/03/2024 5:11 PM
  • File size: 437 bytes
  • MIME-type: text/plain
  • Charset: utf-8
/**
 * 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;