lib/Map/TableColumn.js
function applyHintsToName(hintSet, name, unallowedTypes) {
  for (var i in hintSet) {
    if (hintSet[i].hint.test(name)) {
      var guess = hintSet[i].type;
      if (unallowedTypes.indexOf(guess) === -1) {
        return guess;
      }
    }
  }
}
function applyHintsToName(hintSet, name, unallowedTypes) {
  for (var i in hintSet) {
    if (hintSet[i].hint.test(name)) {
      var guess = hintSet[i].type;
      if (unallowedTypes.indexOf(guess) === -1) {
        return guess;
      }
    }
  }
}
function applyHintsToName ( hintSet , name , unallowedTypes ) { for ( var i in hintSet ) { if ( hintSet [ i ] . hint . test ( name ) ) { var guess = hintSet [ i ] . type ; if ( unallowedTypes . indexOf ( guess ) === - 1 ) { return guess ; } } } }
Guesses the best variable type based on its name. Returns undefined if no guess.
@private
@param {Object[]} hintSet The hint set to use, eg. [{ hint: /^(.*[_ ])?(year)/i, type: VarSubType.YEAR }].
@param {String} name The variable name, eg. 'Time (AEST)'.
@param {VarType[]|VarSubType[]} unallowedTypes Types not to consider. Pass [] to consider all types or subtypes.
@return {VarType|VarSubType} The variable type or subtype, eg. VarType.SCALAR.
Guesses the best variable type based on its name . Returns undefined if no guess .