Hello, please help with the question.
For example, there are 4 different names in the array: var array = [‘Leo’, ‘Ivan’, ‘Mari’, ‘Anna’];
And in the variable text, the text in which you can check which of the names are.
In addition, the search function should work quickly, such a task was set, but indexOf () is fast, isn’t it?) It would be good to check all 4 names in one “query”