endWith endWith

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

Categoria

Stringa

Sintassi della funzione

endWith(<parameters>)

Elemento “parameters”

Parametro
Tipo
stringa
stringa
suffisso
stringa

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