I have a data set like this:
[
{
"_id": "5aa7b6add9655d0bd4ce1f53",
"user_name": "as",
"createdate": "2018-03-13T11:31:57.133Z",
},
{
"_id": "5aa7b6add9655d0bd4ce1f54",
"user_name": "ds",
"createdate": "2018-03-13T11:31:57.133Z",
},
]
Now For getting the value one by one I have created a loop. Under loop I am getting the value.
Now if I want to add extra key value on that object then how it will be done.?
I tried data[i].extrakey = "value"; console.log(data); but it will not set.
Any help is really appreciated