Phaser API Documentation

  Version: 

Member of: Phaser.Structs.Set

each(callback, [callbackScope])

Description:

Passes each value in this Set to the given callback. Use this function when you know this Set will be modified during the iteration, otherwise use iterate.

Parameters:

name type arguments description
callback EachSetCallback

The callback to be invoked and passed each value this Set contains.

callbackScope * <optional>

The scope of the callback.

Returns:
Description:

This Set object.

Since: 3.0.0
Source: src/structs/Set.js (Line 170)