function pluck(obj, fields) {
  var plucked = {};
  if (!obj) {
    return;
  }

  fields.forEach(function (field) {
    plucked[field] = obj[field];
  });

  return plucked;
}
function pluck(obj, fields) {
  var plucked = {};
  if (!obj) {
    return;
  }

  fields.forEach(function (field) {
    plucked[field] = obj[field];
  });

  return plucked;
}
function pluck ( obj , fields ) { var plucked = { } ; if ( ! obj ) { return ; } fields . forEach ( function ( field ) { plucked [ field ] = obj [ field ] ; } ) ; return plucked ; }
Plucks a few fields from an object
Plucks a few fields from an object