[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Map/Map [Back]  [Original]

Map() - JavaScript | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

Map()

Baseline Widely available

This feature is well established and works across many devices and browser versions. Its been available across browsers since 2015 7.

Map() Map .

In this article

js
new Map()
new Map(iterable)

: Map() new . new TypeError .

iterable Optional

Array - . ( [[ 1, 'one' ],[ 2, 'two' ]] 2 ). - Map .

Map

js
const myMap = new Map([
  [1, "one"],
  [2, "two"],
  [3, "three"],
]);

Specification
ECMAScript 2027 LanguageSpecification
# sec-map-constructor


Web Proxy Viewer  |  New URL  |  Original Page