array-tree-transform (npm): function arrayToTree and treeToArray
Keywords: array|tree