I have a json array like below, I need to get all the values from below array and need to form a new array of array objects
But I cannot use any model files to achieve this. Not sure how to do this in typescript.
Please help me on this.
[
{
"firstName": "Rajesh",
"lastName": "Kumar",
"age": "25"
},
{
"firstName": "john",
"lastName": "david",
"age": "26"
}
]
I need to output like
[["Rajesh","Kumar","25"],["john","david","26"]]
Array#map+Object.values(). Try:inputArray.map(obj => Object.values(obj)).