I have object like this
Names = [
{
group: 'BII',
categories: null
},
{
group: 'GVL',
categories: []
}
];
I need to create new array of string that will look like this
Groups = ['BII','GVL'];
Is there some simple solution in Angular or i need to check all properties in object?