Skip to content

Instantly share code, notes, and snippets.

@PatrickJS
Created April 29, 2013 04:28
Show Gist options
  • Save PatrickJS/5479700 to your computer and use it in GitHub Desktop.
Save PatrickJS/5479700 to your computer and use it in GitHub Desktop.
add .reverse() to Strings
String.prototype.reverse = function() {
return this.split("").reverse().join("")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment