Skip to content

Instantly share code, notes, and snippets.

@dragonza
Last active January 25, 2018 06:31
Show Gist options
  • Save dragonza/a6261fe042f620495cfdc0c5a90842e2 to your computer and use it in GitHub Desktop.
Save dragonza/a6261fe042f620495cfdc0c5a90842e2 to your computer and use it in GitHub Desktop.
String reversal
function reverse(str) {
return str.split('').reduce((rev, char) => char + rev, '')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment