arrayRotate

arrayRotate

> Functions

This function is available from LeekScript 4 onward. Returns a new array with the elements of array shifted positions places to the right: those pushed past the end come back at the start.

A negative value shifts to the left. Shifting by the size of the array, or by one of its multiples, leaves it unchanged. The array array is not modified.

Parameters
Return
Note