mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-19 14:09:31 +02:00
adding string reverser code to string in utils
This commit is contained in:
@@ -16,3 +16,7 @@ export const replaceSpecialCharacters = (str: string) => {
|
|||||||
.replace(/\\f/g, '\f')
|
.replace(/\\f/g, '\f')
|
||||||
.replace(/\\v/g, '\v');
|
.replace(/\\v/g, '\v');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export function reverseString(input: string): string {
|
||||||
|
return input.split('').reverse().join('');
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user