DEV Community

Discussion on: Merging Arrays in Javascript

Collapse
 
millard_ profile image
Millard

Just for fun

let firstList = [4, 6, 8, 9]
let secondList = [2, 3, 5, 7]

`${firstList},${secondList}`.split(",")