String startsWith() and endsWith()
Widely availableThe startsWith()
and endsWith()
methods of strings returns whether a search string appears at the beginning or end of the provided string.
The startsWith()
and endsWith()
methods of strings returns whether a search string appears at the beginning or end of the provided string.