Reverse
type
returns
Getter
string

Explanation

Returns the reverse of a string. Handles unicode surrogates.

Examples

1
"πŸπŸ‘".rev == "πŸ‘πŸ"
2
"Hello! Hi!" == "!iH !olleH"
3
"Hi".rev == "iH"
4
"".rev == ""
Copied!
Last modified 1yr ago
Copy link