mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Merge pull request #3502 from icbat/master
filling in docs for utils.object.clone, hasAll, and hasAny
This commit is contained in:
commit
67c0bb8059
3 changed files with 10 additions and 10 deletions
|
@ -10,9 +10,9 @@
|
|||
* @function Phaser.Utils.Object.Clone
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {object} obj - [description]
|
||||
* @param {object} obj - the object from which to clone
|
||||
*
|
||||
* @return {object} [description]
|
||||
* @return {object} a new object with the same properties as the input obj
|
||||
*/
|
||||
var Clone = function (obj)
|
||||
{
|
||||
|
|
|
@ -5,15 +5,15 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* [description]
|
||||
* Verifies that an object contains all requested keys
|
||||
*
|
||||
* @function Phaser.Utils.Object.HasAll
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {object} source - [description]
|
||||
* @param {string[]} keys - [description]
|
||||
* @param {object} source - an object on which to check for key existence
|
||||
* @param {string[]} keys - an array of keys to ensure the source object contains
|
||||
*
|
||||
* @return {boolean} [description]
|
||||
* @return {boolean} true if the source object contains all keys, false otherwise.
|
||||
*/
|
||||
var HasAll = function (source, keys)
|
||||
{
|
||||
|
|
|
@ -5,15 +5,15 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* [description]
|
||||
* Verifies that an object contains at least one of the requested keys
|
||||
*
|
||||
* @function Phaser.Utils.Object.HasAny
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {object} source - [description]
|
||||
* @param {string[]} keys - [description]
|
||||
* @param {object} source - an object on which to check for key existence
|
||||
* @param {string[]} keys - an array of keys to search the object for
|
||||
*
|
||||
* @return {boolean} [description]
|
||||
* @return {boolean} true if the source object contains at least one of the keys, false otherwise
|
||||
*/
|
||||
var HasAny = function (source, keys)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue