/ Published in: JavaScript
A simple Javascript function to tell if one string starts with another.
Usage:
if (myString.startsWith("anything") {
do something…
}
NOTE: As always, make sure this is defined before it is used!
Usage:
if (myString.startsWith("anything") {
do something…
}
NOTE: As always, make sure this is defined before it is used!