zach.codes

zach.codes

Recursive Promises in Node

Zach Silveira
Apr 16, 2017
∙ Paid
Share

Recursive functions are extremely useful for many things in JavaScript. In React, you might want to traverse through all the children of a higher order component, even nested ones. There's many valid use-cases for these functions.

Last week I realized that I needed to recursively call a promise and eventually resolve at an unknown point. Why? In this cas…

Keep reading with a 7-day free trial

Subscribe to zach.codes to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Zach Silveira
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture