Posts by Carecoid • 43 points
1 post
-
4
votes1
answer60
viewsQ: How do I keep an original copy when using Sort in Javascript arrays?
I need to sort an array, but I can’t miss the original sequence. To do this, I created a new variable and assigned the value to it, making a copy of the original. However, when using the method…