Open diveDylan opened 4 years ago
function instanceFn(left, right) { let leftProto = left.__proto__ while(leftProto) { if( leftProto.constructor === right) return true leftProto = leftProto.__proto__ } return false }