Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions src/structs/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ var Class = require('../utils/Class');
* @constructor
* @since 3.0.0
*
* @generic K
* @generic {string|number} K
* @generic V
* @genericUse {V[]} - [elements]
* @genericUse {(K|V)[][]} - [elements]
*
* @param {Array.<*>} elements - An optional array of key-value pairs to populate this Map with.
* @param {Array.<Array.<K|V>>} [elements] - An optional array of key-value pairs to populate this Map with.
*/
var Map = new Class({

Expand Down Expand Up @@ -80,11 +80,9 @@ var Map = new Class({
* @method Phaser.Structs.Map#setAll
* @since 3.70.0
*
* @generic K
* @generic V
* @genericUse {V[]} - [elements]
* @genericUse {(K|V)[][]} - [elements]
*
* @param {Array.<*>} elements - An array of key-value pairs to populate this Map with.
* @param {Array.<Array.<K|V>>} [elements] - An array of key-value pairs to populate this Map with.
*
* @return {this} This Map object.
*/
Expand Down Expand Up @@ -139,7 +137,7 @@ var Map = new Class({
* @since 3.0.0
*
* @genericUse {K} - [key]
* @genericUse {V} - [$return]
* @genericUse {V|undefined} - [$return]
*
* @param {string} key - The key of the element to return from the `Map` object.
*
Expand Down