Merge pull request #3502 from icbat/master

filling in docs for utils.object.clone, hasAll, and hasAny
This commit is contained in:
Richard Davey 2018-04-04 11:25:46 +01:00 committed by GitHub
commit 67c0bb8059
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 10 deletions

View file

@ -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)
{

View file

@ -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)
{

View file

@ -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)
{