mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-14 11:45:41 +00:00
3 lines
97 B
TypeScript
3 lines
97 B
TypeScript
|
export function createSlug(title: string) {
|
||
|
return title.toLowerCase().replace(/\s+/g, '-')
|
||
|
}
|