mirror of
https://github.com/iib0011/omni-tools.git
synced 2026-12-03 18:11:22 +03:00
adding string reverser code to string in utils
This commit is contained in:
1 parent
2855efd8c7
commit
7a7bf06b28
1 file changed
+4
@@ -16,3 +16,7 @@ export const replaceSpecialCharacters = (str: string) => {
|
||||
.replace(/\\f/g, '\f')
|
||||
.replace(/\\v/g, '\v');
|
||||
};
|
||||
|
||||
export function reverseString(input: string): string {
|
||||
return input.split('').reverse().join('');
|
||||
}
|
||||
Reference in new issue
Block a user