textConvert
    Preparing search index...

    Function kebabCase

    • Convert a string from any convention to Kebab Case convention.

      Parameters

      • text: string

        A string to be converted to Kebab Case.

      Returns string

      A string in kebab-case convention.

      kebabCase('hello world'); // 'hello-world'