Created
April 24, 2019 19:34
-
-
Save syeo66/40843f806a8aa28c222f4d85775df21f to your computer and use it in GitHub Desktop.
Functional Javascript sorting.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const myArray = [0, 3, 6, 1, 2, 5, 4, 8, 7, 9]; | |
const sortedArray = myArray.slice().sort(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment