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 2016년 9월.
Set[Symbol.species] 정적 접근자 속성은 Set 객체를 어떻게 복사하는지 명시하는 미사용 접근자 속성입니다.
get [Symbol.species]가 호출된 생성자(this)의 값입니다. 반환 값은 복사된 Set 인스턴스를 구성하는 데 사용됩니다.
[Symbol.species] 접근자 속성은 Set 객체의 기본 생성자를 반환합니다. 하위 클래스의 생성자는 생성자 할당을 변경하기 위해 재정의 할 수 있습니다.
참고 : 이 속성은 모든 Set 메서드에서 사용하고 있지 않습니다.
[Symbol.species] 속성은 기본 생성자 함수, 즉 Set의 Set 생성자를 반환합니다.
MySet과 같은 사용자 정의 Set 하위 클래스의 인스턴스에서 MySet species는 MySet 생성자입니다. 하지만 파생 클래스 메서드에서 부모 Set 객체를 반환하기 위해 이를 덮어 쓸 수도 있습니다.
| ECMAScript® 2027 Language Specification # sec-get-set-%symbol.species% |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2024년 8월 12일 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.