Mam obiekt, który przechowuje alerty i kilka informacji o nich:
var alerts = {
1: { app: 'helloworld', message: 'message' },
2: { app: 'helloagain', message: 'another message' }
}
Poza tym, mam zmienną, która mówi ile alarmy istnieją alertNo. Moje pytanie brzmi: czy kiedy idę dodać nowy alert, istnieje sposób, aby dołączyć alert do alertsobiektu?