The Rest parameter and the Spread operator made simple. Part 2
In part 1, we covered a lot about the rest parameter. We learned the rest parameter is denoted by three dots ... followed by the name of the array to pack the incoming arguments. We discovered that the rest parameter gathers all the incoming argument...
pseremba.hashnode.dev4 min read