ef6a6d135489a5bc9c573546988522cecbdac269025d5757401ca77355f0ef21b2c80d1185465f9767d82658551657a2d9e11b25a18018b3c21939facca713 435 B

1234567891011121314151617181920
  1. /**
  2. * Appends the elements of `values` to `array`.
  3. *
  4. * @private
  5. * @param {Array} array The array to modify.
  6. * @param {Array} values The values to append.
  7. * @returns {Array} Returns `array`.
  8. */
  9. function arrayPush(array, values) {
  10. var index = -1,
  11. length = values.length,
  12. offset = array.length;
  13. while (++index < length) {
  14. array[offset + index] = values[index];
  15. }
  16. return array;
  17. }
  18. export default arrayPush;