endWith

Dernière mise à jour : 2023-07-05
  • Rubriques :
  • Journeys
    Afficher plus sur ce sujet
  • Créé pour :
  • Experienced
    Developer

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