dist/js/materializecss-autocomplete.js
function handleUniqueResult(results) {
      var res = [], flag = {};
      for (var i = 0; i<results.length; i++) {
        if (flag[results[i][self.displayProperty1]]) continue;
        flag[results[i][self.displayProperty1]] = true;
        res.push(results[i]);
      }
      return res;
    }
function handleUniqueResult(results) {
      var res = [], flag = {};
      for (var i = 0; i<results.length; i++) {
        if (flag[results[i][self.displayProperty1]]) continue;
        flag[results[i][self.displayProperty1]] = true;
        res.push(results[i]);
      }
      return res;
    }
function handleUniqueResult ( results ) { var res = [ ] , flag = { } ; for ( var i = 0 ; i < results . length ; i ++ ) { if ( flag [ results [ i ] [ self . displayProperty1 ] ] ) continue ; flag [ results [ i ] [ self . displayProperty1 ] ] = true ; res . push ( results [ i ] ) ; } return res ; }
This function check for result uniqueness on displayProperty1 params and return unique array
@param results
@returns {Array}
This function check for result uniqueness on displayProperty1 params and return unique array