SOURCE

function myInstanceof(left,right){
    let L = left.__proto__,
    R = right.prototype;
    while(true){
        if(L == null) return false;
        if(L === R) return true
        L = L.__proto__
    }
}

let res = myInstanceof([], Array)
console.log(res)
console 命令行工具 X clear

                    
>
console