Javascript How To Transform Indented List To Table

Javascript How To Transform Indented List To Table