DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
Spread syntax in ES6
let arr1 = [1, 2, 3] let func = (a, b, c) => a + b + c console.log(func(...arr1)) // 6
Source by softhunt.net #
PREVIOUS
NEXT
Tagged:
#Spread
#syntax
ADD COMMENT
Topic
COMMENT
Name
4+8 =
Submit