Renvoie « true » si le deuxième paramètre est un suffixe du premier.
Chaîne
endWith(<parameters>)
Paramètre | Type |
---|---|
chaîne | chaîne |
Suffixe | chaîne |
endWith(<string>,<string>)
Renvoie une valeur booléenne.
endWith("Hello World", "World")
Renvoie true.
endWith("Hello World", "Hello")
Renvoie false.