JSFiddle - React, Tailwind, and code Playground
JavaScript
const hero = {
name: 'Batman'
};
console.log(hero.hasOwnProperty('name')); // => true
console.log(hero.hasOwnProperty('realName')); // => false
const hero = {
name: 'Batman'
};
console.log(hero.hasOwnProperty('name')); // => true
console.log(hero.hasOwnProperty('realName')); // => false