Skip to content

union

Returns deduplicated union of arrays.

ts
import { union } from '@vielzeug/toolkit';

union([1, 2, 2], [2, 3]); // [1, 2, 3]