Object.prototype.hasOwnProperty()
// true, false반환
const object1 = {};
object1.property1 = 42; // 객체에 key, value 추가
console.log(object1.hasOwnProperty('property1')); //true
console.log(object1.hasOwnProperty('toString')); //false
console.log(object1.hasOwnProperty('hasOwnProperty'));// false