Vue d’ensemble
La fonction rtrim()
supprime les espaces de fin d'une chaîne et retourne la chaîne modifiée.
Syntaxe
rtrim(str)
Argument | Type | Description |
---|---|---|
str |
String | La chaîne à modifier |
Type de retour : String
Exemple de Résultat
return rtrim("cloud ")
Résultat : cloud
Exemple d'Utilisation
Supprimez tous les espaces de fin de la saisie avant de l'enregistrer dans la base de données.
with "[email protected] " as input
insert().into(@user).nodes({email: rtrim(input)})