Skip to content

solution#128

Open
Dmitriymush wants to merge 2 commits into
mate-academy:masterfrom
Dmitriymush:fs_aug19_dima_m
Open

solution#128
Dmitriymush wants to merge 2 commits into
mate-academy:masterfrom
Dmitriymush:fs_aug19_dima_m

Conversation

@Dmitriymush

Copy link
Copy Markdown

No description provided.

Comment thread src/capitalsFirst.js Outdated
*/
function capitalsFirst(str) {
// write code here
const upperCaseW = str.split(' ').filter(word => word[0].match(/\b[A-Z]/g));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Сделай split один раз и запиши в переменную

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants