DEV Community

Discussion on: Code Golf Challenge: Palindrome Detector

Collapse
 
n8chz profile image
Lorraine Lee
function p(a) {while (a.length>1&&(v=a.shift()==a.pop())); return v;}