Restituisce true se il secondo parametro è un prefisso del primo.
Stringa
startWith(<parameters>)
Parametro | Tipo |
---|---|
string | string |
Prefisso | string |
startWith(<string>,<string>)
Restituisce un valore booleano.
startWith("Hello World", "Hello")
Restituisce true.
startWith("Hello World", "World")
Restituisce false.