startWith startWith

Restituisce true se il secondo parametro è un prefisso del primo.

Categoria

Stringa

Sintassi della funzione

startWith(<parameters>)

Parametri

Parametro
Tipo
string
string
Prefisso
string

Firma e tipo restituito

startWith(<string>,<string>)

Restituisce un valore booleano.

Esempio

startWith("Hello World", "Hello")

Restituisce true.

startWith("Hello World", "World")

Restituisce false.

recommendation-more-help
4f4a00c1-77c9-4eee-84df-bbe6206c3ab9