This site runs best with JavaScript enabled.

JavaScript's ...spread Operator


Evergreen
🌳
Last tended Jan 20, 2019
JavaScript
Illustrated Notes
Web Development

Spreading the elements from one array and copying them into is one of those handy shorthands for moving data around in JavaScript.

I started looking into it after seeing <ComponentName {...props} /> in lots of React projects, and couldn't figure out what on earth was going on with the props syntax.

Mystery solved...

JavaScript's spread operator copies the content of one array, and dumps them out into another

Want more illustrated notes on web development?

Take a look at

, or

Want to share?

Join the newsletter

For weekly notes on visual thinking, ethical technology, and cultural anthropology.

Maggie Appleton © 2025