Reverse

type

returns

Getter

string

Explanation

Returns the reverse of a string. Handles unicode surrogates.

Examples

"🐐🐑".rev == "🐑🐐"
"Hello! Hi!" == "!iH !olleH"
"Hi".rev == "iH"
"".rev == ""

Last updated