DEV Community

Discussion on: Spread vs Rest Operators in JavaScript

Collapse
 
baroblesvi profile image
Barbara Robles (english prof.)

Thank you for your comment! Actually, I meant for destructuring! When it comes to functions, the rest is used on function definitions, while the spread operator is used when calling the function! Hope this helps!