Phaser API Documentation

  Version: 

Member of: Phaser.Utils.Array

<static> MoveUp(array, item)

Description:

Moves the given array element up one place in the array. The array is modified in-place.

Parameters:

name type description
array array

The input array.

item *

The element to move up the array.

Returns:
Description:

The input array.

Type:
  • array
Since: 3.4.0
Source: src/utils/array/MoveUp.js (Line 7)