Javascript Filter Hierarchy To Only Leaf Level Nodes Stack Overflow

Javascript Filter Hierarchy To Only Leaf Level Nodes Stack Overflow