Skip to content

Instantly share code, notes, and snippets.

@aglemann
Created November 7, 2012 04:49
Show Gist options
  • Save aglemann/4029623 to your computer and use it in GitHub Desktop.
Save aglemann/4029623 to your computer and use it in GitHub Desktop.
p = function(s, l) { return (l = ~~(s.length / 2)), s.substr(0, l).split('').reverse().join('') == s.substr(-~l) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment