TS-Scribe - v0.6.2
    Preparing search index...

    Function toKebabCase

    • Converts a given string to kebab-case.

      Parameters

      • text: string | undefined

        The input string to convert.

      Returns string

      The kebab-case version of the input string, or an empty string if input is falsy.

      toKebabCase('helloWorld');         // "hello-world"
      toKebabCase('foo_bar-baz'); // "foo-bar-baz"
      toKebabCase(' SomeInputValue '); // "some-input-value"
      toKebabCase(undefined); // ""