I want to skip/remove an element from array object to display required data only and skip _id One answer is here but needs more detail
How to remove specific key and value from array object in javascript?
[
{
_id:"1",
id:"d8a67aa5-10bd-43bb-be33-5e4219cedaf4",
title:"Work"
},
{
_id:"2",
id:"d8a67aa5-10bd-43bb-be33-5e4219cedaf4",
title:"Work"
}
]
As you can see above the array object has three element, _id, id and title.
I want to achieve this result
[
{
id:"d8a67aa5-10bd-43bb-be33-5e4219cedaf4",
title:"Work"
},
{
id:"d8a67aa5-10bd-43bb-be33-5e4219cedaf4",
title:"Work"
}
]
I do not want to have _id I shall be very thankful