Skip to content

Solution#133

Open
CrazyNoodl wants to merge 1 commit into
mate-academy:masterfrom
CrazyNoodl:fs_aug19_artem
Open

Solution#133
CrazyNoodl wants to merge 1 commit into
mate-academy:masterfrom
CrazyNoodl:fs_aug19_artem

Conversation

@CrazyNoodl

Copy link
Copy Markdown

No description provided.

Comment thread src/capitalsFirst.js
const res = [];
const words = str.split(' ').filter(item => /^[A-z]/.test(item));
const upperCase = words.filter(firstLetter =>
firstLetter[0] === firstLetter[0]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ты мог бы здесь делать проверку регулярным выражением и тогда не пришлось бы делать первый фильтр где ты отсеиваешь слова начинающиеся не с буквы

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