Let's say we have this array
[{name:string,address:string,tel:string},{name:string, address:string, tel:string}]
- Each objects in the array are of the same type
- And I want to extract the same attribut trom each object
How can I create this array from the objects contain in the first array ?
[name:string, name:string]
I'm still new to javascript/typescript I'm trying to find an efficient way to do it
any idea ?