Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### capitalizeEveryWord
|
||||
---
|
||||
title: capitalizeEveryWord
|
||||
tags: string,regexp,intermediate
|
||||
---
|
||||
|
||||
Capitalizes the first letter of every word in a string.
|
||||
|
||||
@ -10,4 +13,4 @@ const capitalizeEveryWord = str => str.replace(/\b[a-z]/g, char => char.toUpperC
|
||||
|
||||
```js
|
||||
capitalizeEveryWord('hello world!'); // 'Hello World!'
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user