phaser - v4.0.0-rc.4
    Preparing search index...
    • Moves the given array element below another one in the array. If the given element is already below the other, it isn't moved. Below means toward the start of the array. The array is modified in-place.

      Parameters

      • array: any[]

        The input array.

      • item1: any

        The element to move below base element.

      • item2: any

        The base element.

      Returns any[]