Javascript – Flatten the array of objects and removing duplicate key entry
I have array of objects data as below where ID is duplicate key in nested array of object: const arr = [ { "First Name": "ABC", "Last Name": "XYZ", "Gender": "MALE", "Id": "123", "moreDetails": { "items": [ { "Id": "123",…