Skip to content

mariags803/camelcase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code kata: CamelCase

Description

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'

Run project

Install

npm install

Run test

npm test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published