I have an array of objects, like this:
[
{
name: 'Gary',
job: 'Janitor'
},{
name: 'Bill',
job: 'Dancer'
},{
name: 'Barry',
job: 'Black Smith'
}
]
I'd like to create an array of values for the job property, so I want to end up with this:
[
'Janitor',
'Dancer',
'Black Smith'
]
I'd like to use only vanilla JS to accomplish this.
What would be the best approach to accomplish this?