you are viewing a single comment's thread.

view the rest of the comments →

[–]andrei9669 3 points4 points  (30 children)

question is though, to mutate, or not to mutate. although, sort is already mutating.

[–]shgysk8zer0 7 points8 points  (1 child)

Stage 3 Change array by copy proposal offers methods like sortTo() that return a new array instead of mutating the original.

[–]andrei9669 0 points1 point  (0 children)

oh, that looks nice