ArrayUtils.rotateLeft()

<static> rotateLeft(array) → {any}

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.

Source code: utils/ArrayUtils.js (Line 217)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.