Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

Map.prototype.set()

2 tags 1 category

The set() method of Map instances adds a new entry with a specified key and value to this Map, or updates an existing entry if the key already exists.

Parameters: key The key of the entry to add to or modify within the Map object. Can be any value. Object keys are compared by reference, not by value. value The value of the entry to add to or modify within the Map object. Can be any value.

Syntax example: set(key, value)

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…