getOwnPropertyDescriptor

fun getOwnPropertyDescriptor(target: ERROR CLASS: Symbol not found for JsAny, propertyKey: PropertyKey): TypedPropertyDescriptor<*>(source)

Gets the own property descriptor of the specified object. An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.

Parameters

target

Object that contains the property.

propertyKey

The property name.

MDN Reference


fun getOwnPropertyDescriptor(target: ERROR CLASS: Symbol not found for JsAny, propertyKey: String): TypedPropertyDescriptor<*>(source)