Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### toTitleCase
|
||||
---
|
||||
title: toTitleCase
|
||||
tags: string,regepx,intermediate
|
||||
---
|
||||
|
||||
Converts a string to title case.
|
||||
|
||||
@ -17,4 +20,4 @@ toTitleCase('some_database_field_name'); // 'Some Database Field Name'
|
||||
toTitleCase('Some label that needs to be title-cased'); // 'Some Label That Needs To Be Title Cased'
|
||||
toTitleCase('some-package-name'); // 'Some Package Name'
|
||||
toTitleCase('some-mixed_string with spaces_underscores-and-hyphens'); // 'Some Mixed String With Spaces Underscores And Hyphens'
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user