Skip to main content

get_symbol

Function get_symbol 

Source
pub fn get_symbol<T>(
    target: &Object<T>,
    key: &Symbol,
) -> Result<JsValue, JsValue>
where Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef, for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Expand description

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

MDN documentation