Created
July 21, 2019 08:31
-
-
Save lelouchB/35bb19a7cad6d017c3b17c5d698b9c31 to your computer and use it in GitHub Desktop.
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
let num = [25, 100, 23] | |
console.log(num.sort((a, b) => { | |
return a - b | |
})) | |
//[ 23, 25, 100 ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment