Phaser API Documentation

  Version: 

Member of: Phaser.Structs.Set

get(property, value)

Description:

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.

Parameters:

name type description
property string

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

value *

The value to check for.

Returns:
Description:

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

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