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