DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
Spread Syntax for array literals or strings
[...iterableObj, '4', 'five', 6]; // combine two arrays by inserting all elements from iterableObj
Source by developer.mozilla.org #
PREVIOUS
NEXT
Tagged:
#Spread
#Syntax
#array
#literals
#strings
ADD COMMENT
Topic
COMMENT
Name
5+8 =
Submit