It will check whether the string starts with the given searchString.
string
searchString
1.0.0
startsWith("012345", "012"); // => true Copy
startsWith("012345", "012"); // => true
startsWith("012345", "12"); // => false Copy
startsWith("012345", "12"); // => false
startsWith("012345", "234", 2); // => true Copy
startsWith("012345", "234", 2); // => true
It will check whether the
stringstarts with the givensearchString.