The tale of three dots in Javascript

Gábor Soós
Emarsys Craftlab
Published in
4 min readNov 8, 2019

--

Once upon a time, there was a significant upgrade to the Javascript language called ES6/ES2015. It introduced many different new features. One of them was the three consecutive dots that we can write in front of any compatible container (objects, arrays, strings, sets, maps). These tiny little dots enable us to write more elegant and concise code. I’ll explain how the three dots work and show the most common use-cases.

--

--

Professional software engineer, with extensive experience as a leader