I want to access names from this data whose status is completed how do it do that? I have fetched this data from an API and I want to save the names into a state whose status is completed.
"data": [
{
"status": "COMPLETED",
"_id": "606bf5d19173931121c0017c",
"userId": {
"_id": "606bf5d19173931121c0017a",
"email": "[email protected]",
"contactNumber": 7896541236
},
"name": "Admin1"
},
{
"status": "PENDING",
"_id": "606c074e9173931121c0017f",
"userId": {
"_id": "606c074e9173931121c0017d",
"email": "[email protected]",
"contactNumber": 9638527416
},
"name": "Admin3"
},
{
"status": "PENDING",
"_id": "606c07a99173931121c00182",
"userId": {
"_id": "606c07a99173931121c00180",
"email": "[email protected]",
"contactNumber": 9638527477
},
"name": "Admin4"
},
]
reduceno?