Functional Loops in JavaScript
medium.com