js union arrays

Solutions on MaxInterview for js union arrays by the best coders in the world

showing results for - "js union arrays"
Leon
22 Aug 2016
1let a = [34, 35, 45, 48, 49];
2let b = [48, 55];
3let union = [...new Set([...a, ...b])];
4console.log(union);