Skip to content

Instantly share code, notes, and snippets.

@aglemann
Created November 7, 2012 04:49
Embed
What would you like to do?
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