Please find the below data. Here is I need only Id:1 data. Some Id's have no values and some Id's have another values.
Actual data:
data: [
0: {Id: "1", DoctorId: "61", CreatedBy: "1", CreatedDate: "2020-06-25T00:00:00.000Z",…}
1: {Id: "2", DoctorId: "61", CreatedBy: "1", CreatedDate: "2020-06-26T00:00:00.000Z",…}
2: {Id: "3", DoctorId: "61", CreatedBy: null, CreatedDate: "2020-06-24T00:00:00.000Z",…}
3: {Id: "1", DoctorId: "61", CreatedBy: null, CreatedDate: "2020-06-24T19:24:00.000Z",…}
4: {Id: "1", DoctorId: "61", CreatedBy: null, CreatedDate: "2020-06-25T11:15:00.000Z",…}
5: {Id: "", DoctorId: "61", CreatedBy: null, CreatedDate: "2020-07-07T12:15:00.000Z",…}
6: {Id: "", DoctorId: "61", CreatedBy: null, CreatedDate: "2020-06-25T11:15:00.000Z",…}
7: {Id: "", DoctorId: "61", CreatedBy: null, CreatedDate: "2020-07-07T12:15:00.000Z",…}
]
I need output like this.
data: [
0: {Id: "1", DoctorId: "61", CreatedBy: "1", CreatedDate: "2020-06-25T00:00:00.000Z",…}
1: {Id: "1", DoctorId: "61", CreatedBy: null, CreatedDate: "2020-06-24T19:24:00.000Z",…}
2: {Id: "1", DoctorId: "61", CreatedBy: null, CreatedDate: "2020-06-25T11:15:00.000Z",…}
]