Pushes all the items passed to the first array if it doesn't already contain them.
This does NOT check the array for duplicates.
This is because we can just pass an empty array as the first argument to achieve the same thing if we want this to behave like a union (though union is available as a wrapper), while not losing any performance when we're sure there are no duplicates in the first array (e.g. we got it from Object.keys).
Pushes all the items passed to the first array if it doesn't already contain them.
This does NOT check the array for duplicates.
This is because we can just pass an empty array as the first argument to achieve the same thing if we want this to behave like a union (though union is available as a wrapper), while not losing any performance when we're sure there are no duplicates in the first array (e.g. we got it from
Object.keys
).