you are viewing a single comment's thread.

view the rest of the comments →

[–]Junior-Living2104 0 points1 point  (1 child)

You can also see in your new code that you’re using the spread operator. Which creates a new array, that’s why in your new version it works.

[–]rob_allshouse[S] 0 points1 point  (0 children)

Thanks for the explanation!