2👍
Whilst you can slice the results, it may be more helpful to use something like typeahead or select2 to fetch results based on what the user is entering with a separate ajax request.
Otherwise you may want to look into other ways of filtering down the results such as having a separate select box first to filter by results by first letter or similar
Source:stackexchange.com