paint-brush
Decoding the Three Dots (…) Or Spread Operator in Javascriptby@smpnjn
2,475 reads
2,475 reads

Decoding the Three Dots (…) Or Spread Operator in Javascript

by Johnny Simpson2mSeptember 4th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The spread operator is a type of syntax in Javascript that is used by functions calls and in arrays/objects. It has a multitude of different uses, so let's take a look at how we use the spread syntax in real Javascript code. In function calls, we can use the 3 dots in Javascript function calls to convert an array into a set of arguments for a function. Merging objects and merging arrays is a useful way to use spread syntax to run functions with arrays easily, and are good for merging objects and arrays.
featured image - Decoding the Three Dots (…) Or Spread Operator in Javascript
Johnny Simpson HackerNoon profile picture
Johnny Simpson

Johnny Simpson

@smpnjn

Product, Engineering, Web

About @smpnjn
LEARN MORE ABOUT @SMPNJN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Johnny Simpson HackerNoon profile picture
Johnny Simpson@smpnjn
Product, Engineering, Web

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite