skip to main content

8 ways to use the Spread operator

03 September, 2020

Posted in javascript links

JavaScript Jeep recently shared an article on ways to use the Spred operator.

Spread operator expands an iterable object (i.e. an Array) into its individual element. An iterable object is anything that you can loop over.

let fruits = ['šŸˆ', 'šŸ‰', 'šŸ‹', 'šŸŒ'];

console.log(...fruits); //šŸˆ šŸ‰ šŸ‹ šŸŒ

Check out the full article for more ways to use the Spread operator