Phaser API Documentation

  Version: 
<static> HasAny(source, keys)

Description:

Verifies that an object contains at least one of the 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 search the object for

Returns:
Description:

true if the source object contains at least one of the keys, false otherwise

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