<static> rotate(array) → {any} This method is deprecated and should not be used. It may be removed in the future.
Moves the element from the start of the array to the end, shifting all items in the process.
The "rotation" happens to the left.
Before: [ A, B, C, D, E, F ]
After: [ B, C, D, E, F, A ]
See also Phaser.ArrayUtils.rotateRight
Parameters
Name | Type | Description |
---|---|---|
array | Array.<any> | The array to rotate. The array is modified. |
Returns
any -
The rotated value.
- Deprecated:
- Please use Phaser.ArrayUtils.rotate instead.
- Source code: utils/ArrayUtils.js (Line 239)
Please login to continue.