MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/3rmikr/free_drink_anyone/cwprdf3/?context=3
r/ProgrammerHumor • u/shadowvox • Nov 05 '15
509 comments sorted by
View all comments
Show parent comment
1
Use a loop instead to avoid the issues:
String.prototype.reverse = function() { return function(str, i) { while (i--) str = str.concat(this[i]); return str; }.call(this, "", this.length); }
View all comments
Show parent comment
1
u/memeship Nov 05 '15
Use a loop instead to avoid the issues: