Return a string joined by dashes after separating it by its uppercase characters.
Any sequence of spaces or underscores will also be converted to a single dash. The final string will be lowercased.
dasherize "SomeClassName" == "-some-class-name"
dasherize "some\_class\_name" == "some-class-name"
dasherize "someClass name" == "some-class-name"This is a non-shrinking space character
This is an empty char that has no width but a height
I swiped this from elm-community/string-extra -- Chad Aug 26 2020
Return a string joined by underscores after separating it by its uppercase characters. Any sequence of spaces or dashes will also be converted to a single underscore. The final string will be lowercased.
underscored "SomeClassName" == "some\_class\_name"
underscored "some-class-name" == "some\_class\_name"
underscored "SomeClass name" == "some\_class\_name