I want to convert these strings:
fooBar FooBar
into:
foo-bar -foo-bar
How would I do this in JavaScript the m
You can use https://github.com/epeli/underscore.string#dasherizestring--string from underscore.string library.