The triple dot syntax (<code>...</code>) in JavaScript: rest vs. spread

4 · Axel Rauschmayer · May 4, 2022, 11:40 a.m.
In JavaScript, the same syntax – triple dots (...) – is used for two different mechanisms: Rest syntax is for receiving data. Spreading is for sending data. This blog post examines how these mechanisms work and why they are not operators. [Read rest of post]...