Function reverse

  • Namespace

    StringUtils

    Reverse the characters of a string.

    Parameters

    • str: string

      The input string.

    Returns string

    The reversed string.

    Example

    const originalString = "hello, world!";
    const reversedString = StringUtils.reverseString(originalString);
    console.log(reversedString); // Output: "!dlrow ,olleh"

Generated using TypeDoc