Lodash _.kebabCase() Method
The _.kebabCase() method is used to convert the given string into kebab case string. kebabCase is the practice of writing identifiers using hyphens instead of spaces.
Parameters: This method accepts single parameter as mentioned above and described below:
- string: This parameter holds the string that need to convert into kebab case string.
Return Value: This method returns the kebab cased string.
"geeks-for-geeks" "geeks-for-geeks" "geeks-for-geeks"