@extremejs/utils - v1.0.0-beta.23
    Preparing search index...

    Function kebabCase

    • It will convert the given string to kebab case.

      Parameters

      • string: string

      Returns string

      1.0.0

      kebabCase("camelCase"); // => "camel-case"
      
      kebabCase("some text"); // => "some-text"
      
      kebabCase("some-mixed_string With spaces_underscores-and-hyphens");
      // => "some-mixed-string-with-spaces-underscores-and-hyphens"
      kebabCase("AllThe-small Things"); // => "all-the-small-things"
      
      kebabCase("IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML");
      // => "i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-some-xml-and-html"