Phaser API Documentation

  Version: 

Member of: Phaser.Structs.Map

set(key, value)

Description:

Adds an element with a specified key and value to this Map. If the key already exists, the value will be replaced.

Parameters:

name type description
key string

The key of the element to be added to this Map.

value *

The value of the element to be added to this Map.

Returns:
Description:

This Map object.

Since: 3.0.0
Source: src/structs/Map.js (Line 78)