Version: v0.7.0 - Beta.  We welcome contributors & feedback.

String.dashCase

dashCase() -> string

Description

Convert to dash-case format.

'listOfPosts'.dashCase()
//= 'list-of-posts'

'list_of_Posts'.dashCase()
//= 'list-of-posts'

'list of posts'.dashCase()
//= 'list-of-posts'

See Also