Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 442 Bytes

Convert string to camel case.md

File metadata and controls

13 lines (9 loc) · 442 Bytes

Complete the method/function so that it converts dash/underscore delimited words into camel casing. The first word within the output should be capitalized only if the original word was capitalized.

Examples:

// returns "theStealthWarrior"
toCamelCase("the-stealth-warrior") 

// returns "TheStealthWarrior"
toCamelCase("The_Stealth_Warrior")

solution