Function get_own_property_descriptor

pub fn get_own_property_descriptor<T>(target: &Object<T>, property_key: &JsValue) -> Result<JsValue, JsValue>
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>>,

The static Reflect.getOwnPropertyDescriptor() method is similar to Object.getOwnPropertyDescriptor(). It returns a property descriptor of the given property if it exists on the object, undefined otherwise.

MDN documentation