We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
/-\w/g
const camelCase = (str) => str.replace(/-\w/g, t => t.substr(1).toUpperCase()) const str = 'my-name-is-loadingmore' const str2 = '-my-name-is-loadingmore' camelCase(str) // myNameIsLoadingmore camelCase(str2) // MyNameIsLoadingmore