method ObjectConstructor.getOwnPropertyDescriptor
Private
ObjectConstructor.getOwnPropertyDescriptor(
o: any,
): PropertyDescriptor | undefined

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

o: any

Object that contains the property.

Name of the property.

Return Type

PropertyDescriptor | undefined