js_sys::Reflect

Function get

Source
pub fn get(target: &JsValue, key: &JsValue) -> Result<JsValue, JsValue>
Expand description

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

MDN documentation