这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@blakecallens
Copy link
Contributor

No description provided.

Copy link
Owner

@Chalarangelo Chalarangelo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the snippet to its own file to follow the current guidelines. Apart from that everything seems perfectly fine.

```js
var capitalize = str => str[0].toUpperCase() + str.slice(1);
```

This comment was marked as spam.


### Capitalize first letter of every word

Use `replace()` to match the first character of each word and `toUpperCase()` to capitalize it.

This comment was marked as spam.

@Chalarangelo Chalarangelo merged commit 2964ac4 into Chalarangelo:master Dec 12, 2017
Chalarangelo pushed a commit that referenced this pull request Dec 14, 2017
Chalarangelo pushed a commit that referenced this pull request Dec 15, 2017
Chalarangelo pushed a commit that referenced this pull request Dec 21, 2017
flxwu pushed a commit that referenced this pull request Dec 24, 2017
Chalarangelo pushed a commit that referenced this pull request Dec 29, 2017
Chalarangelo pushed a commit that referenced this pull request Jan 27, 2018
Chalarangelo pushed a commit that referenced this pull request Oct 9, 2018
fejes713 pushed a commit that referenced this pull request Nov 12, 2018
Chalarangelo pushed a commit that referenced this pull request Feb 25, 2019
@lock
Copy link

lock bot commented Dec 18, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for any follow-up tasks.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants