Course contentsShow
JavaScript
Lesson 905 of 2,72320. Array Iteration and TransformationPro lesson

Creating Immutable Sorted Copies

Use toSorted (ES2023) or spread with sort to create a new sorted array without mutating the original.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.