const addendum = null const acts.change = [act1]; console.log( acts.change.concat(addendum?.changedActions) );