Skip to content

Reverse

Reverses the sequence of characters in given string.

  • A string.
  • The string in reverse order.
Definition
function reverse(str: string): string
Example
reverse('bad') // 'dab'