Answer the question
In order to leave comments, you need to log in
How to optimize live search?
There is an array of objects of the form:
[
{
code: 'test',
name: 'Тест',
}
// ...........
]
options.filter(({ name }) => name.includes(inputValue));
Answer the question
In order to leave comments, you need to log in
You need debounce
. For example, from lodash
- lodash.com/docs/#debounce .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question