mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-17 17:56:38 +00:00
adding string reverser code to string in utils
This commit is contained in:
parent
2855efd8c7
commit
7a7bf06b28
@ -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('');
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user