Phaser API Documentation

  Version: 
has(object, key)

Description:

Check whether an object has the given property.

Parameters:

name type description
object object

The object to check.

key string

The key of the property to look for in the object.

Returns:
Description:

true if the property exists in the object, false otherwise.

Type:
  • boolean
Since: 3.0.0