Decoding the Three Dots (…) Or Spread Operator in Javascript
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.