src/aria/widgets/controllers/MultiAutoCompleteController.js
function (suggestions) {
                var selectedSuggestions = this.selectedSuggestions;
                var filteredSuggestions = [];
                for (var i = 0; i < suggestions.length; i++) {
                    var curSuggestion = suggestions[i];
                    if (this._findSuggestion(selectedSuggestions, curSuggestion) == -1) {
                        filteredSuggestions.push(curSuggestion);
                    }
                }
                return filteredSuggestions;
            }
function (suggestions) {
                var selectedSuggestions = this.selectedSuggestions;
                var filteredSuggestions = [];
                for (var i = 0; i < suggestions.length; i++) {
                    var curSuggestion = suggestions[i];
                    if (this._findSuggestion(selectedSuggestions, curSuggestion) == -1) {
                        filteredSuggestions.push(curSuggestion);
                    }
                }
                return filteredSuggestions;
            }
function ( suggestions ) { var selectedSuggestions = this . selectedSuggestions ; var filteredSuggestions = [ ] ; for ( var i = 0 ; i < suggestions . length ; i ++ ) { var curSuggestion = suggestions [ i ] ; if ( this . _findSuggestion ( selectedSuggestions , curSuggestion ) == - 1 ) { filteredSuggestions . push ( curSuggestion ) ; } } return filteredSuggestions ; }
Internal method to filter the suggestion with the added suggestions
@param {Array} suggestions
@return {Array}
Internal method to filter the suggestion with the added suggestions