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