0.0.4 • Published 9 years ago

lodash-pluckmany v0.0.4

Weekly downloads
18
License
-
Repository
github
Last release
9 years ago

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:

http://stackoverflow.com/a/27514972/199263