endWith

Renvoie « true » si le deuxième paramètre est un suffixe du premier.

Catégorie

Chaîne

Syntaxe de la fonction

endWith(<parameters>)

Paramètres

Paramètre Type
chaîne chaîne
suffixe chaîne

Signature et type renvoyé

endWith(<string>,<string>)

Renvoie une valeur booléenne.

Exemple

endWith("Hello World", "World")

Renvoie true.

endWith("Hello World", "Hello")

Renvoie false.

Sur cette page