Created
July 31, 2018 19:08
-
-
Save wojtrawi/39d4264bbe7ef8d883b59e9793911ae9 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
const cars = [ | |
'Aston Martin', | |
'Ferrari', | |
'Porsche' | |
]; | |
const carsReversed = [...cars].sort(() => 1); | |
console.log(`My cars: ${cars}`); | |
console.log(`My cars reversed: ${carsReversed}`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment