Last updated 4 years ago
Was this helpful?
const mergeArrays = (arr1, arr2) => new Array(...new Set([...arr1, ...arr2])).sort((a, b) => a - b);