pluck.js 222 B

1234567
  1. import map from './map.js';
  2. import property from './property.js';
  3. // Convenience version of a common use case of `_.map`: fetching a property.
  4. export default function pluck(obj, key) {
  5. return map(obj, property(key));
  6. }