ArrayUtils.rotate()

<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)
doc_phaser
2017-02-14 10:36:18
Comments
Leave a Comment

Please login to continue.