function instanceof1(left, right){ if(typeof right !== 'function') throw new Error('instanceof1 error') let proto = left.__proto__; while(proto){ if(proto === right.prototype){ return true; } proto = proto.__proto__ } return false; }
function instanceof1(left, right){ if(typeof right !== 'function') throw new Error('instanceof1 error') let proto = left.__proto__; while(proto){ if(proto === right.prototype){ return true; } proto = proto.__proto__ } return false; }