The power of the spread and rest syntax in JavaScript
It’s a fair bet that most web developers regularly encounter the three dots (...) in their code. Sometimes it magically copies arrays, sometimes it gathers up function arguments, and sometimes it shows up in object literals like it’s casting a spell. Say hello to the spread syntax and rest parameter,...