// package
array-union
type: "module"
// preferences
// replacements (1)
snippet::array-union
Simple or drop-in replacementThis package is no longer necessary. You can use a combination of the spread operator and `Set` to create a union of two arrays.
// example
const union = (a, b) => [
...new Set([...a, ...b]),
];