File

src/services/searchSuggestionService/search-suggestion.service.ts

Index

Methods

Constructor

constructor()

Methods

getSuggestion
getSuggestion(value: string, items: any[])

Method in charge of returning a suggestion if possible

Parameters :
Name Type Optional
value string No
items any[] No
Returns : Suggestion | null

Suggestion | null

Private searchSuggestionInList
searchSuggestionInList(value: string, items: any[])

Iterates the items array to find a valid suggestion and index

Parameters :
Name Type Optional
value string No
items any[] No
Returns : Suggestion | null

Suggestion

results matching ""

    No results matching ""