endWith

Retorna 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 booleano.

Exemplo

endWith("Hello World", "World")

Retorna true.

endWith("Hello World", "Hello")

Retorna false.

Nesta página