Phaser API Documentation

  Version: 
has(key)

Description:

Determines whether the given key is set in this Data Manager.

Please note that the keys are case-sensitive and must be valid JavaScript Object property strings. This means the keys gold and Gold are treated as two unique values within the Data Manager.

Parameters:

name type description
key string

The key to check.

Returns:
Description:

Returns true if the key exists, otherwise false.

Type:
  • boolean
Since: 3.0.0
Source: src/data/DataManager.js (Line 577)