NATIVE

settings_applicationsObject

NATIVE

Editing
  • account_tree
  • bug_report

ObjectdescriptorgetOwnPropertyDescriptor(Objectobject, String, Symbolproperty)

첫 번째 인수로 지정된 객체의 특정 프로퍼티에 대한 configurable, enumerable, value, writable, get, set 명세를 반환한다.

구문

형식
Object.getOwnPropertyDescriptor(object, property)

매개 변수

Objectobject필수
프로퍼티에 대한 명세를 반환할 객체
String, Symbolproperty필수

명세를 검색하고자 하는 속성 이름 또는 심벌

반환

Objectdescriptor

프로퍼티에 대한 configurable, enumerable, value, writable, get, set 명세를 반환한다. 반환된 객체는 변경 가능하며 원래 프로퍼티의 구성에 영향을 주지 않는다.

버전 명세

ECMAScript 2024(15th Edition)
#sec-object.getownpropertydescriptor

지원 웹브라우저