Skip to main content

instance_of

Function instance_of 

Source
pub fn instance_of(obj: &Value, ctor: &Value) -> Result<bool, String>
Expand description

obj instanceof ctor — walk obj’s prototype chain looking for ctor.prototype.