Map() 생성자
Map()
생성자는 Map
객체를 생성합니다.
구문
매개변수
예제
새로운 Map 생성하기
js
const myMap = new Map([
[1, "one"],
[2, "two"],
[3, "three"],
]);
명세서
Specification |
---|
ECMAScript Language Specification # sec-map-constructor |
브라우저 호환성
BCD tables only load in the browser
같이 보기
-
A polyfill of
Map
is available incore-js
Set
(en-US)WeakMap
WeakSet