• Converts a string to kebab-case (lowercase with hyphens).

    Parameters

    • str: string

      The string to convert to kebab-case.

    Returns string

    The string in kebab-case format.

    Example

    kebabCase("hello world"); // Returns: "hello-world"
    kebabCase("HelloWorld"); // Returns: "hello-world"
    kebabCase("hello_world"); // Returns: "hello-world"
    kebabCase("helloWorld"); // Returns: "hello-world"

Generated using TypeDoc