手动实现一个instanceof
1.手动实现一个instanceof
function myinstanceof(target, origin){
let proto = target.__proto__
if(proto){
if(proto === origin.prototype){
return true
}else{
return myinstanceof(proto, origin)
}
}else{
return false
}
}