endWith endWith

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

Categoria

Stringa

Sintassi della funzione

endWith(<parameters>)

Parametri

Parametro
Tipo
string
string
suffisso
string

Firma e tipo restituito

endWith(<string>,<string>)

Restituisce un valore booleano.

Esempio

endWith("Hello World", "World")

Restituisce true.

endWith("Hello World", "Hello")

Restituisce false.

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