DEV Community

Discussion on: Javascript Algorithms Challenges | Part 2

Collapse
 
martinnrdstrm profile image
Martin Nordström

Thanks for your suggestion Patrick!

Smart move with using the reduce method and moving the check!