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