Spread Operator On Array Javascript Iteration Methods