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