phaser - v4.0.0-rc.4
    Preparing search index...
    • Replaces an element of the array with the new element. The new element cannot already be a member of the array. The array is modified in-place.

      Parameters

      • array: any[]

        The array to search within.

      • oldChild: any

        The element in the array that will be replaced.

      • newChild: any

        The element to be inserted into the array at the position of oldChild.

      Returns boolean