Converts an array of items with ids and parent ids to a nested tree in a performant way (time complexity O(n)).
O(n)
array of items
please see performant-array-to-tree
performant-array-to-tree
Converts an array of items with ids and parent ids to a nested tree in a performant way (time complexity
O(n)
).