6 lines
119 B
TypeScript
6 lines
119 B
TypeScript
|
export const slugify = (str: string) => {
|
||
|
return str.replace(/\s+/g, "-").toLowerCase();
|
||
|
};
|
||
|
|
||
|
export default slugify;
|