Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > Text > reverse

Text.reverse() method

Returns a new string that is the input string with the order of characters reversed.

Signature:

static reverse(s: string): string;

Parameters

Parameter

Type

Description

s

string

Returns:

string