Spread vs Rest Operators in JavaScript