Function dasherise

  • Converts a string of space or underscore separated words to a hyphen separated string (kebab-case).

    Parameters

    • words: string

      an underscore separated string to be converted to kebabcase.

    Returns string

    a kebabcase version of words.