siva prakas

siva prakas

  • NA
  • 32
  • 13.1k

Remove a key from json object array in angular 5

Apr 3 2018 10:10 PM
hi,
 
i need to remove a key from json object array, the array contains users details
 
[{
  "id": 1,
   "name": "AAA",
   "exp": 5
},
{
"id": 2,
"name": "BBB",
"exp": 3
}]
 
i need to remove the "id" key from the object array
 
[{
"name": "AAA",
"exp": 5
},
{
"name": "BBB",
"exp": 3
}]
 
 

Answers (2)