Phaser API Documentation

  Version: 
<static> HasValue(source, key)

Description:

Determine whether the source object has a property with the specified key.

Parameters:

name type description
source object

The source object to be checked.

key string

The property to check for within the object

Returns:
Description:

true if the provided key exists on the source object, otherwise false.

Type:
  • boolean
Since: 3.0.0