startWith startWith

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

Categoria

Stringa

Sintassi della funzione

startWith(<parameters>)

Elemento “parameters”

Parametro
Tipo
stringa
stringa
prefisso
stringa

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
b22c9c5d-9208-48f4-b874-1cefb8df4d76