I have a large Object with similar structure as below.
[
{
"Name": "xxx",
"Company": "Google",
"Type": "Search",
},
{
"Name": "yyy",
"Company": "MS",
"Type": "Search",
}
]
I am trying to get fields such as Name, Type and I want to build a new Object.
var newArray = [];
newArray.push = [ {
object[0].Name,
object[0].Type } ]
Like this but is there any way I can achieve this by using iterations ?
Thank you.