Formats the given string in dash case fashion
输入字符串
短横线格式的字符串
dash('hello world') // -> 'hello-world'dash('va va_VOOM') // -> 'va-va-voom'dash('helloWord') // -> 'hello-word' Copy
dash('hello world') // -> 'hello-world'dash('va va_VOOM') // -> 'va-va-voom'dash('helloWord') // -> 'hello-word'
Formats the given string in dash case fashion