src/aria/widgets/controllers/MultiAutoCompleteController.js
function (suggestionsList, suggestion) {
                for (var i = 0, l = suggestionsList.length; i < l; i++) {
                    if (suggestion.label == suggestionsList[i].label) {
                        return i;
                    }
                }
                return -1;
            }
function (suggestionsList, suggestion) {
                for (var i = 0, l = suggestionsList.length; i < l; i++) {
                    if (suggestion.label == suggestionsList[i].label) {
                        return i;
                    }
                }
                return -1;
            }
function ( suggestionsList , suggestion ) { for ( var i = 0 , l = suggestionsList . length ; i < l ; i ++ ) { if ( suggestion . label == suggestionsList [ i ] . label ) { return i ; } } return - 1 ; }
Returns the index of the given suggestion in the given array of suggestions. The comparison is based on
labels.
@param {Array} suggestionsList
@param {Object} suggestion
@return {Boolean}
Returns the index of the given suggestion in the given array of suggestions . The comparison is based on labels .