function pick$2(obj, arr) {
  var res = {};
  for (var i = 0, len = arr.length; i < len; i++) {
    var parsedField = parseField(arr[i]);
    var value = getFieldFromDoc(obj, parsedField);
    if (typeof value !== 'undefined') {
      setFieldInDoc(res, parsedField, value);
    }
  }
  return res;
}
// and copies them to a new doc. Like underscore _.pick but supports nesting.
and copies them to a new doc. Like underscore _.pick but supports nesting.
and copies them to a new doc . Like underscore _ . pick but supports nesting .
function pick$2(obj, arr) {
  var res = {};
  for (var i = 0, len = arr.length; i < len; i++) {
    var parsedField = parseField(arr[i]);
    var value = getFieldFromDoc(obj, parsedField);
    if (typeof value !== 'undefined') {
      setFieldInDoc(res, parsedField, value);
    }
  }
  return res;
}
function pick$2 ( obj , arr ) { var res = { } ; for ( var i = 0 , len = arr . length ; i < len ; i ++ ) { var parsedField = parseField ( arr [ i ] ) ; var value = getFieldFromDoc ( obj , parsedField ) ; if ( typeof value !== 'undefined' ) { setFieldInDoc ( res , parsedField , value ) ; } } return res ; }
and copies them to a new doc.
and copies them to a new doc .