Created
September 1, 2019 04:16
-
-
Save heinthanth/1252d99a3b1bc591609d2c8e03b355f5 to your computer and use it in GitHub Desktop.
Array Reverse
This file contains hidden or 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
var x = ["foo", "bar", "baz"]; | |
x = x.reverse(); | |
// now x become ["baz", "bar", "foo"]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment