Add Objects to Array

I have added a checkbox to my DataGrid (grid0) and followed the instructions HERE to set a property 'SelectedItems' based on

${this.grid0.data.filter(i => i.checked)}

I then want to move on to Page 2 of grid0, select some more items and continue to add them to the array, but at the moment it overwrites the array each time.

Is there a simple way to execute code which adds the given objects to a property?

Thanks,
Matt

Yes, this would be Array.concat. Something like this (you would have to use Execute Code action).

this.myProperty = this.myProperty.concat(this.grid0.data.filter(i => i.checked));

Thanks @korchev, it worked perfectly,