Phaser API Documentation

  Version: 
<static> GetBoolean(source, key, defaultValue)

Description:

Retrieves the value of the given key from an object.

Parameters:

name type description
source object

The object to retrieve the value from.

key string

The key to look for in the source object.

defaultValue *

The default value to return if the key doesn't exist or if no source object is provided.

Returns:
Description:

The retrieved value.

Type:
  • *
Examples:
Since: 3.0.0