Recursive functions in TypeScript

1 · Josh Sherman · April 20, 2020, 5:13 a.m.
In working with the Slate framework for building rich text editors recently, I found myself faced with a scenario where I needed to loop through the editor’s value. The value that comes out the editor is an array of objects that is nestable, I assume infinitely, by way of the......