单项选择题

以下哪个方法可以检测是该对象的私有属性,不是原型属性?()

A.isPrototypeOf
B.hasOwnProperty
C.getOwnPropertySymbols
D.getOwnPropertyDescriptors