let obj = { a: 1, b: 2, c: 3, } let a = Object.assign({}, obj, {a: 4, g: 5}) let newObj = Object.create(a); console.log(a.hasOwnProperty); console.log(obj.hasOwnProperty);