Format array of objects into a different array of objects standard format : Javascript
I am having an array of objects that looks like this const input = [ { group: { id: "group1", groupName: "Group1" }, categories: [ { id: "category11", categoryName: "Category 11", subCategories: [] } ] }, { group: { id:…