@tremendous/help
    Preparing search index...

    Function kebabCase

    • Converts a string to kebab case.

      This function converts a string to kebab case, replacing spaces with underscores and converting uppercase letters to lowercase, prefixed with an dash (-).

      Parameters

      • string: string

        The string to be converted to kebab case.

      Returns string

      The kebab case string.

      kebabCase("Hello World"); // "hello-world"
      kebabCase("kebabCaseString"); // "kebab-case-string"