Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript array concat spread operator

const arr1 = [1,2,3]
const arr2 = [4,5,6]
const arr3 = [...arr1, ...arr2] //arr3 ==> [1,2,3,4,5,6]
 
PREVIOUS NEXT
Tagged: #javascript #array #concat #spread #operator
ADD COMMENT
Topic
Name
5+9 =