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월.
Map[@@species] 접근자 속성은 Map 객체를 복사하는 방법을 지정하는 사용되지 않는 접근자 속성입니다.
get @@species가 호출된 생성자(this)의 값. 반환 값은 복사된 Map 인스턴스를 생성하는 데 사용됩니다.
@@species 접근자 속성은 Map 객체에 대한 기본 생성자를 반환합니다. 하위 클래스 생성자는 생성자 할당을 변경하기 위해 이를 재정의할 수 있습니다.
참고 : 이 속성은 모든 Map 메서드에서 현재 사용되고 있지 않습니다.
@@species 속성은 Map의 기본 생성자 함수인 Map 을 반환합니다.
MyMap과 같은 사용자 지정 Map 하위 클래스의 인스턴스에서 MyMap의 species는 MyMap 생성자입니다. 그러나 파생된 클래스 메서드에서 상위 Map 객체를 반환하기 위해서는 이 값을 덮어쓸 수 있습니다.
| ECMAScript® 2027 Language Specification # sec-get-map-%symbol.species% |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2024년 7월 31일 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.