Having a text whose words can be delimited by spaces, hyphens and/or underscores, return the text in camel case format (PascalCase, the first letter of each word is capitalized).
Example
text = '' // => ''
text = 'Foo' // => 'Foo'
text = 'Foo Bar' // => 'FooBar'
text = 'Foo_Bar-Foo' // => 'FooBarFoo'
text = 'foo' // => 'Foo'
text = 'foo_bar foo-bar' // => 'FooBarFooBar'
Install
npm install
Run test
npm test