| Method | Description | Parameters | Returns | Mutating |
|---|---|---|---|---|
| POP | Removes the last element | () | The removed element | ✅ |
| SHIFT | Removes the first element | () | The removed element | ✅ |
| PUSH | Adds the element to the end | (value) | The new length | ✅ |
| UNSHIFT | Adds the element to the start | (value) | The new length | ✅ |
| CONCAT | Adds the element to the end | (), (value), (value1,..., valueN) | The new length | ❌ |
| SPLICE | Adds/Removes the element from start to end | (start, deleteCount, item1,...,itemN) | The array with the new elements or the array with only the removed elements | ✅ |
| SLICE | Makes a shallow copy of a portion of array | (), (start, end) | The selected part of the array | ❌ |
| FILL | Changes all elements in the array | (value, start, end) | The array with the new elements | ✅ |
Array
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||