lib/indexes.js
function getDotValues (doc, fields) {
  var field, key, i, len;

  if (util.isArray(fields)) {
    key = {};
    for (i = 0, len = fields.length; i < len; i++) {
      field = fields[i];
      key[field] = document.getDotValue(doc, field);
    }
    return key;
  } else {
    return document.getDotValue(doc, fields);
  }
}
function getDotValues (doc, fields) {
  var field, key, i, len;

  if (util.isArray(fields)) {
    key = {};
    for (i = 0, len = fields.length; i < len; i++) {
      field = fields[i];
      key[field] = document.getDotValue(doc, field);
    }
    return key;
  } else {
    return document.getDotValue(doc, fields);
  }
}
function getDotValues ( doc , fields ) { var field , key , i , len ; if ( util . isArray ( fields ) ) { key = { } ; for ( i = 0 , len = fields . length ; i < len ; i ++ ) { field = fields [ i ] ; key [ field ] = document . getDotValue ( doc , field ) ; } return key ; } else { return document . getDotValue ( doc , fields ) ; } }
Get dot values for either a bunch of fields or just one.
Get dot values for either a bunch of fields or just one .