I\'m trying to create a deep nested JS Object out of a simple array. The tricky part is that the next item in the array should always be added to the previous one.
As