Skip to content

Commit 4fa61fe

Browse files
committed
chore: remove unnecessary type annotation
1 parent 5ae12df commit 4fa61fe

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/utils/replaceWhiteSpace.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
export const replaceWhiteSpace = (
2-
str: string,
3-
replacement: string = "-",
4-
): string => {
1+
export const replaceWhiteSpace = (str: string, replacement: string = "-") => {
52
return str.replace(/\s+/g, replacement).toLowerCase();
63
};

0 commit comments

Comments
 (0)