re: Keeping Your Code Simple VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I would probably end up using a for loop for this, but here's the most readable version using reduce I could think of: function longestString(st...
 

Makes sense. I was trying to piece together CL's function from bits and pieces of a Twitter DM when I wrote this article. It's definitely not optimal. I should have asked him to clarify however he's a low level programmer not as familiar with Javascript.

code of conduct - report abuse