Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015년 7월.
Map 인스턴스의 set() 메서드는 이 Map에서 명시된 키와 값을 추가하거나 갱신합니다.
Map 객체에 추가되는 요소의 키. 이 키는 모든 종류의 JavaScript 유형(모든 원시형 혹은 모든 Javascript 객체)가 될 수 있습니다.
valueMap 객체에 추가되는 요소의 값. 이 값은 모든 종류의 JavaScript 유형(모든 종류의 원시형 혹은 모든 종류의 Javascript 객체)가 될 수 있습니다.
Map 객체.
set()메서드는 같은 Map 객체를 반환하기 때문에 아래와 같이 연속으로 호출할 수 있습니다.
| ECMAScript® 2027 Language Specification # sec-map.prototype.set |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025년 7월 20일 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.