0.0.4 • Published 9 years ago
lodash-pluckmany v0.0.4
Just like pluck, except for multiple properties.
Usage
var users = [
{ 'user': 'barney', 'age': 36 },
{ 'user': 'fred', 'age': 40 }
];
_.pluckMany(users,'age','user');
// -> { 'age': 36, 'user': 'barney' },
// { 'age': 40, 'user': 'fred' }
Credits
This is npm the packaged version of an answer found on StackOverflow by a user named nha: