Apply new format to snippets and template
This commit is contained in:
@ -5,7 +5,7 @@ tags: string,regexp,intermediate
|
||||
|
||||
Converts a string to camelcase.
|
||||
|
||||
Break the string into words and combine them capitalizing the first letter of each word, using a regexp.
|
||||
- Break the string into words and combine them capitalizing the first letter of each word, using a regexp.
|
||||
|
||||
```js
|
||||
const toCamelCase = str => {
|
||||
@ -24,4 +24,4 @@ toCamelCase('some_database_field_name'); // 'someDatabaseFieldName'
|
||||
toCamelCase('Some label that needs to be camelized'); // 'someLabelThatNeedsToBeCamelized'
|
||||
toCamelCase('some-javascript-property'); // 'someJavascriptProperty'
|
||||
toCamelCase('some-mixed_string with spaces_underscores-and-hyphens'); // 'someMixedStringWithSpacesUnderscoresAndHyphens'
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user