source: node_modules/es-toolkit/dist/string/reverseString.d.ts

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 567 bytes
RevLine 
[a762898]1/**
2 * Reverses a given string.
3 *
4 * This function takes a string as input and returns a new string that is the reverse of the input.
5 *
6 * @param {string} value - The string that is to be reversed.
7 * @returns {string} - The reversed string.
8 *
9 * @example
10 * const reversedStr1 = reverseString('hello') // returns 'olleh'
11 * const reversedStr2 = reverseString('PascalCase') // returns 'esaClacsaP'
12 * const reversedStr3 = reverseString('foo 😄 bar') // returns 'rab 😄 oof'
13 */
14declare function reverseString(value: string): string;
15
16export { reverseString };
Note: See TracBrowser for help on using the repository browser.