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월.
handler.ownKeys() 메서드는 Reflect.ownKeys()에 대한 트랩입니다.
다음 매개변수는 ownKeys() 메서드에 전달됩니다. this는 처리기에 바인딩됩니다.
target대상 객체
ownKeys() 메서드는 열거 가능한 객체를 반환합니다.
handler.ownKeys() 메서드는 Reflect.ownKeys()에 대한 트랩입니다.
이 트랩은 다음 작업을 가로챌 수 있습니다.
다음 불변 조건이 위반되면 프록시에서 TypeError가 발생합니다.
다음 코드는 Object.getOwnPropertyNames()를 트랩합니다.
다음 코드는 불변 조건을 위반합니다.
| ECMAScript® 2027 Language Specification # sec-proxy-object-internal-methods-and-internal-slots-ownpropertykeys |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025년 2월 11일 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.