Phaser API Documentation

  Version: 

Member of: Phaser.Utils.Array

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

Description:

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

Parameters:

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.

Returns:
Description:

The input array.

Type:
  • array
Since: 3.4.0