angular-typeahead.js
function getDatumValue(datum) {
        for (var i in datasets) {
          var dataset = datasets[i];
          var displayKey = dataset.displayKey || 'value';
          var value = (angular.isFunction(displayKey) ? displayKey(datum) : datum[displayKey]) || '';
          return value;
        }
      }
function getDatumValue(datum) {
        for (var i in datasets) {
          var dataset = datasets[i];
          var displayKey = dataset.displayKey || 'value';
          var value = (angular.isFunction(displayKey) ? displayKey(datum) : datum[displayKey]) || '';
          return value;
        }
      }
function getDatumValue ( datum ) { for ( var i in datasets ) { var dataset = datasets [ i ] ; var displayKey = dataset . displayKey || 'value' ; var value = ( angular . isFunction ( displayKey ) ? displayKey ( datum ) : datum [ displayKey ] ) || '' ; return value ; } }
Returns the string to be displayed given some datum
Returns the string to be displayed given some datum