Use the filter method for letter wise search
· One min read
The **filter()** method creates a new array with all elements that pass the test implemented by the provided function. — Source
The **filter()** method creates a new array with all elements that pass the test implemented by the provided function. — Source