Search
 
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
Name
5+8 =