UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

17 lines 598 B
//#region src/string/reverseString.d.ts /** * Reverses a given string. * * This function takes a string as input and returns a new string that is the reverse of the input. * * @param value - The string that is to be reversed. * @returns The reversed string. * * @example * const reversedStr1 = reverseString('hello') // returns 'olleh' * const reversedStr2 = reverseString('PascalCase') // returns 'esaClacsaP' * const reversedStr3 = reverseString('foo 😄 bar') // returns 'rab 😄 oof' */ declare function reverseString(value: string): string; //#endregion export { reverseString };