API Reference

Returns an array of unique values from the provided arrays

function union<T>(...arr: T[][]): T[]

// Example:

union([1, 2, 3], [3, 4, 5], [5, 6, 7]) //=> [1, 2, 3, 4, 5, 6, 7]