
原型链查找过程
`
        function instance_of(L,R){
            const baseType = [‘string‘, ‘number‘,‘boolean‘,‘undefined‘,‘symbol‘]
            if(baseType.includes(typeof(L))) return false; 
            let RP = R.prototype;
            let Lp = L.__proto__;
            while(true){
                console.log(RP,Lp)
                if(Lp === null) return false;
                
                if(Lp === RP) return true;
                Lp = Lp.__proto__;
            }
        }
`



原文:https://www.cnblogs.com/zhaowendao233/p/14204789.html