list2tree (npm): It converts the list structure to the tree structure.
Keywords: list|tree|function