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. 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