Image by Shane Aldendorff from Unsplash
DESCRIPTION
Need to search for a character, word, or entire sentence? String .includes method to the rescue.
Find the words and sentences
Summary
- .includes
String
method can be used for searching a character, word, or sentence in a string. - Additionally, you can drill down the search to start from a particular position.