adding string reverser code to string in utils

This commit is contained in:
Chesterkxng
2024-07-10 14:33:20 +00:00
parent 2855efd8c7
commit 7a7bf06b28

View File

@@ -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('');
}