Constructeur Map()
Le constructeur Map()
permet de créer des objets Map
.
Syntaxe
new Map()
new Map(iterable)
Paramètres
Exemples
Créer un nouvel objet Map
let maMap = new Map([
[1, 'un'],
[2, 'deux'],
[3, 'trois'],
]);
Spécifications
Specification |
---|
ECMAScript Language Specification # sec-map-constructor |
Compatibilité des navigateurs
BCD tables only load in the browser