• Formats the given string in dash case fashion

    dash('hello world') -> 'hello-world' dash('va va_VOOM') -> 'va-va-voom' dash('helloWord') -> 'hello-word'

    Parameters

    • str: string

    Returns string