DEV Community

What is ES6 spread operator ?

Baptiste Firket on February 18, 2019

What is ES6 spread operator and in what cases should we use it ?

Collapse
 
rhymes profile image
rhymes

@samanthaming wrote a really nice post about the spread operator today:

She even added a simple explanation using Russian dolls :D

Collapse
 
samanthaming profile image
Samantha Ming

Had no idea you could share a post in a comment. Cool! Thanks for the share 😊

Also, glad you liked the Russian doll explanation. I always find it more fun to explain programming concepts in non-dev terms πŸ˜†

Collapse
 
baptistefkt profile image
Baptiste Firket

Thanks, that's exactly what I was looking for ! (But making my search on 'spread', I've missed this one)