Improved docs

This commit is contained in:
Richard Davey 2020-10-27 13:55:09 +00:00
parent b67c67b063
commit ef1ddb29d9

View file

@ -18,7 +18,7 @@ var Class = require('../utils/Class');
/** /**
* @classdesc * @classdesc
* The keys of a Map can be arbitrary values. * The keys of a Map can be arbitrary values.
* *
* ```javascript * ```javascript
* var map = new Map([ * var map = new Map([
* [ 1, 'one' ], * [ 1, 'one' ],
@ -272,7 +272,9 @@ var Map = new Class({
}, },
/** /**
* Passes all entries in this Map to the given callback. * Iterates through all entries in this Map, passing each one to the given callback.
*
* If the callback returns `false`, the iteration will break.
* *
* @method Phaser.Structs.Map#each * @method Phaser.Structs.Map#each
* @since 3.0.0 * @since 3.0.0