Understanding Spread and Rest Operator
Spread Operator
So ever gone through the hassle of passing n number of arguments to a function and handling it there, uhh🤯. So much trouble.
const add = (a,b,c,d,e) => a + b + c + d + e
console.log(add(1,2,3,4,5)) // Output: 15
This might get confu...
vinitkanse.com3 min read