Array Union

Combine two arrays and remove duplicates to produce a union.

Code

General
arr1 | arr2

Parameters

First array

Second array

Server

More Ruby Snippets