Function kebabCase

Converts a string to kebab-case. Handles various separators and case transitions.

kebabCase('helloWorld');
// => 'hello-world'

kebabCase('HelloWorldTest');
// => 'hello-world-test'
  • Parameters

    • str: string

      String to convert

    Returns string

    kebab-cased string