I realise that it was probably already asked but nothing I googled worked for me. I have an array of objects
const domain = [
{ 'domain': 'All Domains' },
{ 'domain': 'Active Domains' },
{ 'domain': 'Not Reviewed' },
{ 'domain': 'Not Seen' },
{ 'domain': 'Action Concluded' },
];
and I need to extract values to get
var newDomain = [
{ 'domain': 'Active Domains' },
{ 'domain': 'Action Concluded' },
];
I thought to use .map but I'm lost on how to use it.