I have an object that holds alerts and some information about them:
var alerts = { 1: { app: \'helloworld\', message: \'message\' }, 2: { app: \'hel
You can use spread syntax as follows..
var alerts = { 1: { app: 'helloworld', message: 'message' }, 2: { app: 'helloagain', message: 'another message' } } alerts = {...alerts, 3: {app: 'hey there', message: 'another message'} }