I have an array of objects, where each object has a \"children\" property (example data below). I want to flatten parents/children into a single array, with each parent imme