Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

merg two array js

let ar1 = [1,2,3,4,5]
let ar2 = [6,7,8,9,10]

let merge = [...ar1,...ar2]
console.log(merge) // [1,2,3,4,5,6,7,8,9,10]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #merg #array #js
ADD COMMENT
Topic
Name
2+3 =