Function convertToKebabCase

  • Converts a string to kebab case.

    Parameters

    • str: string

      The input string to be converted.

    Returns string

    The kebab case version of the input string.

    Example

    const inputString = 'convertToKebabCase';
    const kebabCaseString = convertToKebabCase(inputString);
    console.log(kebabCaseString); // "convert-to-kebab-case"

Generated using TypeDoc