const obj = { a:1, b:2 } const add = { c:3, d:4, e: ['x','y','z'] } Object.entries(add).forEach(([key,value]) => { obj[key] = value })