Phaser API Documentation

  Version: 

Member of: Phaser.Structs.Map

has(key)

Description:

Returns a boolean indicating whether an element with the specified key exists or not.

Parameters:

name type description
key string

The key of the element to test for presence of in this Map.

Returns:
Description:

Returns true if an element with the specified key exists in this Map, otherwise false.

Type:
  • boolean
Since: 3.0.0
Source: src/structs/Map.js (Line 150)