说明:instanceof 的原理就是判断对象的原型链上是否有目标对象的原型。
function myInstanace(L,R){
let LP = L.__proto__;
let RP = R.prototype;
while(true){
if(LP == RP) {return true}
if(LP == null) {return false}
LP = LP.__proto__
}
}
myInstanace([1,2],Array) // true