NATIVE

settings_applicationsObject  >   settings_applicationsReflect

NATIVE

Editing
  • account_tree
  • bug_report

ObjectprototypegetPrototypeOf(Objecttarget)

Object.getPrototypeOf()와 동일하다. 객체의 프로토타입 객체를 반환한다.

구문

형식
Reflect.getPrototypeOf(target)

매개 변수

Objecttarget필수

대상 객체를 지정한다.

반환

Objectprototype

지정된 객체의 프로토타입 객체를 반환한다. 지정된 target이 객체가 아닌 경우 TypeError 예외가 발생한다.

Exception

TypeError

동적 타입의 값이 흐름상 맞지 않는 자료형이라 연산을 할 수 없을 때 발생하는 오류를 다루는 객체이다.

버전 명세

ECMAScript 2024(15th Edition)
#sec-reflect.getprototypeof

지원 웹브라우저