We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ae12df commit 4fa61feCopy full SHA for 4fa61fe
1 file changed
src/utils/replaceWhiteSpace.ts
@@ -1,6 +1,3 @@
1
-export const replaceWhiteSpace = (
2
- str: string,
3
- replacement: string = "-",
4
-): string => {
+export const replaceWhiteSpace = (str: string, replacement: string = "-") => {
5
return str.replace(/\s+/g, replacement).toLowerCase();
6
};
0 commit comments