Consider the following JSON array:
var arr = [
{ID: "1", Title: "T1", Name: "N1"},
{ID: "2", Title: "T2", Name: "N2"},
{ID: "3", Title: "T3", Name: "N3"}
]
Is there a way to remove the Title key from all rows simultaneously without using a loop?
The resulting array should be:
var arr = [
{ID: "1", Name: "N1"},
{ID: "2", Name: "N2"},
{ID: "3", Name: "N3"}
]
I attempted the code below:
delete arr.Title
But it only returns a logical response of "true" instead of the updated array.