Back

hyphenize()

Converts camelCase strings to lowercase strings with hyphens as word delimiters instead. Example: myVariable becomes my-variable.

Name Type Required Default Description
string string Yes The string to hyphenize.
<!---Outputs "my-blog-post" --->
#hyphenize("myBlogPost")#
Copied!