Take a look at the latest article published on medium.com by our Senior Architect and Technical lead Phil Karl.
Phil's article shows some practical examples of how recursion can be used in asynchronous functions in JavaScript to solve common problems.
Summary:
Patterns of recursion are common and necessary in JavaScript due to the asynchronous and functional nature of the language and the problems that it is used to solve. The use of recursion in JavaScript is often obscured by the way in which callbacks are used. Promise objects can be used to make the nature of recursion apparent in JavaScript code.