Function slugify

  • Converts a string to a slug.

    Parameters

    • str: string = ''

      The string to slugify.

    Returns string

    The slugified string.

    slugify('Hello World!');
    // => 'hello-world'