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