phaser/v3/typings/utils/array/RotateRight.d.ts

10 lines
429 B
TypeScript
Raw Normal View History

2017-01-16 21:43:07 +00:00
/**
* Moves the element at the end of the array to the start, shifting all items in the process.
* The "rotation" happens to the right.
*
* @param {any[]} array - The array to shift/rotate. The array is modified.
* @param {integer} [total=1] - The number of times to shift the array. Only the most recently shifted element is returned.
* @return {any} The shifted value.
*/
export default function (array: any, total: any): any;