|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
437 bytes
|
| Line | |
|---|
| 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 |
|
|---|
| 14 | while (++index < length) {
|
|---|
| 15 | array[offset + index] = values[index];
|
|---|
| 16 | }
|
|---|
| 17 | return array;
|
|---|
| 18 | }
|
|---|
| 19 |
|
|---|
| 20 | module.exports = arrayPush;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.