mirror of
https://github.com/photonstorm/phaser
synced 2024-12-20 18:14:13 +00:00
11 lines
463 B
TypeScript
11 lines
463 B
TypeScript
|
/**
|
||
|
* Moves the element at the start of the array to the end, shifting all items in the process.
|
||
|
* The "rotation" happens to the left.
|
||
|
*
|
||
|
* @method Phaser.ArrayUtils.rotate
|
||
|
* @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;
|