@newdash/newdash
Version:
javascript/typescript utility library
20 lines (19 loc) • 500 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Appends the elements of `values` to `array`.
*
* @private
* @ignore
* @param array The array to modify.
* @param values The values to append.
* @returns 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;
}
exports.default = arrayPush;