mozilla

Compare Revisions

Map

Change Revisions

Revision 19291:

Revision 19291 by Marcoos on

Revision 19292:

Revision 19292 by noLanwona on

Title:
Map
Map
Slug:
JavaScript/Reference/Global_Objects/Map
JavaScript/Reference/Global_Objects/Map
Tags:
JavaScript, ECMAScript6
JavaScript, ECMAScript6
Content:

Revision 19291
Revision 19292
n88myMap.get(keyString);  // "value associated with 'a string'");n88myMap.get(keyString);    // "value associated with 'a string'"
89myMap.get(keyObj);     // "value associated with keyObj"89myMap.get(keyObj);       // "value associated with keyObj"
90myMap.get(keyFunc);    // "value associated with keyFunc"90myMap.get(keyFunc);      // "value associated with keyFunc"
n92myMap.get("a string"); // "value associated with 'a string'");n92myMap.get("a string");   // "value associated with 'a string'"
93                       // because keyString === 'a string'93                         // because keyString === 'a string'
t95myMap.get(function() {}) // undefined, because keyFun !== functiot95myMap.get(function() {}) // undefined, because keyFunc !== functi
>n () {}>on () {}

Back to History