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