Namespace
StringUtils
Reverse the characters of a string.
The input string.
The reversed string.
const originalString = "hello, world!";const reversedString = StringUtils.reverseString(originalString);console.log(reversedString); // Output: "!dlrow ,olleh" Copy
const originalString = "hello, world!";const reversedString = StringUtils.reverseString(originalString);console.log(reversedString); // Output: "!dlrow ,olleh"
Generated using TypeDoc
StringUtils
Reverse the characters of a string.