Convert array of objects with parent child relations to nested object – Javascript
Lets say I have the following array of objects which have parent child relations: [ { A1: [ "B1" ] }, { B1: [ "C11", "C12", "C13" ] }, { C11: [ "D100", "D111", "D112", "D113", "D131" ] }, {…