NATIVE

settings_applicationsObject  >   settings_applicationsSymbol

NATIVE

Editing
  • account_tree
  • bug_report

symbolhasInstance

잘 알려진 심벌(well-know symbol)을 나타낸다. instanceof 연산자에 대한 접근 키를 나타내며 이 심벌을 키로 사용하여 instanceof 연산자를 재정의할 수 있다.

구문

형식
[Symbol.hasInstance](instance)

속성 명세

명세
분류설명
configurableno
enumerableno
writableno

예제

instanceof 연산자를 처리하는 메소드를 재정의

버전 명세

ECMAScript 2024(15th Edition)
#sec-symbol.hasinstance

지원 웹브라우저