instanceof读解

function instance(l,r){

   let 0 = r.prototype;

   let v = l.__proto__;

   while(true){

       if(v === null){

            return false;

      }

      if(v === 0){

           return true;

     }

     v = l.__proto__;

   }

}

原文地址:https://www.cnblogs.com/wangc04/p/11765849.html