phaser - v4.0.0-rc.4
    Preparing search index...
    • Swaps the position of two elements in the given array. The elements must exist in the same array. The array is modified in-place.

      Parameters

      • array: any[]

        The input array.

      • item1: any

        The first element to swap.

      • item2: any

        The second element to swap.

      Returns any[]