pub fn instance_of(obj: &Value, ctor: &Value) -> Result<bool, String>
obj instanceof ctor — walk obj’s prototype chain looking for ctor.prototype.
obj instanceof ctor
obj
ctor.prototype