var obj = { a: 1, b: 2, c: 3 } console.log(obj.hasOwnProperty('a')); // true console.log(obj.hasOwnProperty('hello')); // false