Allows you to easily perform a depth-first-search (DFS) through DOM elements.
Run the following command to install:
npm install dom-dfs --save
And then supply the initial DOM element and the condition for when a DOM element should be returned:
TypeScript typings are included in the project.