DEV Community

Discussion on: Lodash in 2021: Necessary or Obsolete?

Collapse
 
ianwijma profile image
Ian Wijma

JS has also a native concat method.

const arr1 = [1,2,3]
const arr2 = [4,5,6]
const arr3 = arr1.concat(arr2)
Enter fullscreen mode Exit fullscreen mode