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.has() 메서드는 in 연산자에 대한 트랩입니다.
다음 매개변수는 has() 메서드에 전달됩니다. this는 처리기에 바인딩됩니다.
target대상 객체
prop존재 여부를 확인할 속성의 이름 또는 Symbol
has() 메서드는 불리언 값을 반환합니다.
handler.has() 메서드는 in 연산자에 대한 트랩입니다.
이 트랩은 다음 작업을 가로챌 수 있습니다.
다음 불변 조건이 위반되면 프록시에서 TypeError가 발생합니다.
다음 코드는 in 연산자를 트랩합니다.
다음 코드는 불변 조건을 위반합니다.
| ECMAScript® 2027 Language Specification # sec-proxy-object-internal-methods-and-internal-slots-hasproperty-p |
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.