Skip to main content

get_str

Function get_str 

Source
pub fn get_str<T>(
    target: &Object<T>,
    key: &JsString,
) -> Result<Option<T>, JsValue>
where Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef, for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode, Result<Option<T>, JsValue>: ErasableGenericOwn<Result<Option<JsValue>, JsValue>> + EncodeTypeDef + BatchableResult,
Expand description

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

MDN documentation