Why is Object.prototype instanceof Object false?

前端 未结 2 1102
既然无缘
既然无缘 2020-12-11 16:39

Why does the following return false?

Object.prototype instanceof Object
2条回答
  •  醉酒成梦
    2020-12-11 17:42

    Referencing MDN:

    The instanceof operator tests whether an object has in its prototype chain the prototype property of a constructor.

提交回复
热议问题