📅  最后修改于: 2022-03-11 15:03:38.834000             🧑  作者: Mango
const hero = {
name: 'Batman'
};
hero.hasOwnProperty('name'); // => true
hero.hasOwnProperty('realName'); // => false