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>>,
Expand description

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

MDN documentation