Phaser API Documentation

  Version: 

Member of: Phaser.Structs.Set

contains(value)

Description:

Returns true if this Set contains the given value, otherwise returns false.

Parameters:

name type description
value *

The value to check for in this Set.

Returns:
Description:

true if the given value was found in this Set, otherwise false.

Type:
  • boolean
Since: 3.0.0
Source: src/structs/Set.js (Line 311)