Function js_sys::Reflect::get_prototype_of

source ·
pub fn get_prototype_of(target: &JsValue) -> Result<Object, JsValue>
Expand description

The static Reflect.getPrototypeOf() method is almost the same method as Object.getPrototypeOf(). It returns the prototype (i.e. the value of the internal [[Prototype]] property) of the specified object.

MDN documentation