Phaser API Documentation

  Version: 

Member of: Phaser.Structs.Map

get(key)

Description:

Returns the value associated to the key, or undefined if there is none.

Parameters:

name type description
key string

The key of the element to return from the Map object.

Returns:
Description:

The element associated with the specified key or undefined if the key can't be found in this Map object.

Type:
  • *
Since: 3.0.0
Source: src/structs/Map.js (Line 106)