endWith endWith

Retornará true se o segundo parâmetro for um sufixo do primeiro.

Categoria

String

Sintaxe da função

endWith(<parameters>)

Parâmetros

Parâmetro
Tipo
string
string
sufixo
string

Assinatura e tipo retornado

endWith(<string>,<string>)

Retorna um valor booleano.

Exemplo

endWith("Hello World", "World")

Retorna verdadeiro.

endWith("Hello World", "Hello")

Retorna falso.

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