reverseString es-toolkit
Reverses a string.
Usage
reverseString(value)
Use reverseString when you want to reverse the order of characters in a string. It correctly handles Unicode characters and emojis.
It accurately handles emojis and special characters.
Parameters
valuestringrequired
The string to reverse.
Returns
Returns a new string with the characters in reverse order.
Try It
::: sandpack
:::
Source: es-toolkit
Re-exported verbatim from es-toolkit. Implementation, edge cases, and performance behavior are owned upstream. This page mirrors the documentation at the pinned version; the linked source is authoritative.