Phaser API Documentation

  Version: 
<static> Pick(object, keys)

Description:

Returns a new object that only contains the keys that were found on the object provided. If no keys are found, an empty object is returned.

Parameters:

name type description
object object

The object to pick the provided keys from.

keys array

An array of properties to retrieve from the provided object.

Returns:
Description:

A new object that only contains the keys that were found on the provided object. If no keys were found, an empty object will be returned.

Type:
  • object
Since: 3.18.0
Source: src/utils/object/Pick.js (Line 9)