DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+9 =
Submit