A utility function that slugify a string
slugifyString('Hello world') // 'Hello-world' Copy
slugifyString('Hello world') // 'Hello-world'
slugifyString('Hello world', '_') // 'Hello_world' Copy
slugifyString('Hello world', '_') // 'Hello_world'
The string to slugify
The delimiter to use for the slug
The slugified string
A utility function that slugify a string
Example
Example