I have the following javascript array var rows.
[
{ email: '[email protected]' },
{ email: '[email protected]' }
]
Of which, I wanted to make it just...
[
'[email protected]',
'[email protected]'
]
So, I tried to loop it using forEach
rows.forEach(function(entry) {
console.log('entry:');
console.log(entry.email);
});
However, I am stuck with that.
entry:
[email protected]
entry:
[email protected]
Any help is appreciated.
node.jsandjavascript, so they don't need to be listed again in the title.