Phaser API Documentation


Member of: Phaser.Structs.Set

get(property, value)


Get an element of this Set which has a property of the specified name, if that property is equal to the specified value. If no elements of this Set satisfy the condition then this method will return null.


name type description
property string

The property name to check on the elements of this Set.

value *

The value to check for.


The first element of this Set that meets the required condition, or null if this Set contains no elements that meet the condition.

  • *
Since: 3.0.0
Source: src/structs/Set.js (Line 82)