There is a method arrayUnion() that we use to add additional element to the existing array. When adding the value that already existed in the array, however, it's not going to merge, and it's just going to persist one element instead of two.
Example:
Existing array = [2]
ArrayUnion([2])...
Resultant array [2]
Example 2;
Existing array = [3];
ArrayUnion([2])...
Resultant Array = [3, 2];
How can I make it work so that the resultant array in the first example would be [2, 2]?
