@bytebury/sauce - v1.13.0
    Preparing search index...

    Function kebab

    • Converts the string to kebab-case by removing punctuation, trimming extra spaces, converting to lowercase, and joining words with hyphens.

      Parameters

      • text: string

      Returns string

      This is null | undefined safe. If you pass null | undefined then this will return "".

      kebab(null); // ""
      kebab("Hello World!"); // "hello-world"
      kebab(" Clean THIS_up!! "); // "clean-this-up"