This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Use toSorted (ES2023) or spread with sort to create a new sorted array without mutating the original.
You've completed the free preview. Subscribe to unlock every lesson in every course.