phaser - v4.0.0-rc.4
    Preparing search index...
    • 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

      • array: any[]

        The input array.

      • item1: any

        The element to move above base element.

      • item2: any

        The base element.

      Returns any[]