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년 9월.
WeakSet() 생성자는 WeakSet 객체를 생성합니다.
만약 순회 가능한 객체가 매개변수로 주어진다면, 모든 해당 객체가 새로운 WeakSet에 추가됩니다. null은 undefined로 취급합니다.
명심하실 점은 foo !== bar라는 점입니다. 둘은 서로 비슷한 객체지만 같은 객체가 아닙니다. 그래서 두 객체 모두 set에 추가 가능합니다.
| ECMAScript® 2027 Language Specification # sec-weakset-constructor |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025년 10월 9일 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.