DEV Community

[Comment from a deleted post]
Collapse
 
caseycole589 profile image
Casey Cole

regular for loop will beat all these methods by huge margin
function reverse(s) {
var o = '';
for (var i = s.length - 1; i >= 0; i--)
o += s[i];
return o;
}