Don't have Telegram yet? Try it now!
https://jrsinclair.hashnode.dev/functional-javascript-traversing-trees-with-a-recursive-reduce-cjwt90ayw002tues1nsb3dlnm
Functional JavaScript: Traversing Trees with a Recursive Reduce by James Sinclair