Function get_str

pub fn get_str<T>(target: &Object<T>, key: &JsString) -> Result<Option<T>, JsValue>
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>>,
    Option<T>: ErasableGenericOwn<Option<JsValue>>,

The static Reflect.get() method works like getting a property from an object (target[propertyKey]) as a function.

MDN documentation