Function slugify

Create slug from given string

  • Parameters

    • value: string

      String to be slugified

    • separator: string = '-'

      One character to be used as separator (if provided longer than one character, will be automatically shortened), dash ('-') by default

    Returns string

    Slugified string