Phaser API Documentation


Member of: Phaser.Utils.Array

<static> EachInRange(array, callback, context, startIndex, endIndex, [args])


Passes each element in the array, between the start and end indexes, to the given callback.


name type arguments description
array array

The array to search.

callback function

A callback to be invoked for each item in the array.

context object

The context in which the callback is invoked.

startIndex number

The start index to search from.

endIndex number

The end index to search to.

args * <optional>

Additional arguments that will be passed to the callback, after the child.


The input array.

  • array
Since: 3.4.0