UNPKG

underscore-es

Version:

javaScript's functional programming helper library for ES6 and beyond.

10 lines (8 loc) 290 B
// `_pluck` : a collection's function // ------------------------------------ import _map from './map'; import _property from './property'; // Convenience version of a common use case of `map`: fetching a property. export default function (obj, key) { return _map(obj, _property(key)); }