Phaser API Documentation

  Version: 
<static> HasAll(source, keys)

Description:

Verifies that an object contains all requested keys

Parameters:

name type description
source object

an object on which to check for key existence

keys Array.<string>

an array of keys to ensure the source object contains

Returns:
Description:

true if the source object contains all keys, false otherwise.

Type:
  • boolean
Since: 3.0.0
Source: src/utils/object/HasAll.js (Line 7)