loading...

re: Keeping Your Code Simple VIEW POST

FULL DISCUSSION
 

I am wondering why you chose reduce instead of sort for your array method? In the example you provided (comparing 2 strings), sort seems to accomplish what you're after and it's really short... the first index is the longest.

code of conduct - report abuse