Phaser API Documentation

  Version: 

Member of: Phaser.Utils.Array

<static> MoveAbove(array, item1, item2)

Description:

Moves the given array element above another one in the array. If the given element is already above the other, it isn't moved. Above means toward the end of the array. The array is modified in-place.

Parameters:

name type description
array array

The input array.

item1 *

The element to move above base element.

item2 *

The base element.

Returns:
Description:

The input array.

Type:
  • array
Since: 3.55.0