simple pluck function
there are a lot of implementations out there that either don't support deep lookup or try to do too much wacky stuff or have a lot of dependencies for no good reason.
var pluck = require('just-pluck')
var pokemon = [{name: 'pikachu'}, {name: 'meowth'}, {name: 'mr mime'}]
console.log(pluck('name', pokemon)) // ['pikachu', 'meowth', 'mr mime']
if nothing is pluck-able from the item in your array, it will be undefined
in
the result.
MIT