That’s not a big deal.
There’s the concat method.
And what if we don’t need to add elements that are already in the array.
If we need to add only new ones.
Well still there’s the concat method and there’s the filter method.
So we concat to arrayA arrayB filtered by arrayA.
Arrays are united.
No duplication.