Moves the element at the start of the array to the end, shifting all items in the process. The "rotation" happens to the left.
name | type | arguments | Default | description |
---|---|---|---|---|
array | array |
The array to shift to the left. This array is modified in place. |
||
total | number | <optional> | 1 |
The number of times to shift the array. |
The most recently shifted element.