Skip to content

solution#131

Open
veronika-donets wants to merge 2 commits into
mate-academy:masterfrom
veronika-donets:fs_aug19_veronika_d
Open

solution#131
veronika-donets wants to merge 2 commits into
mate-academy:masterfrom
veronika-donets:fs_aug19_veronika_d

Conversation

@veronika-donets

Copy link
Copy Markdown

No description provided.

Comment thread src/capitalsFirst.js Outdated
*/
function capitalsFirst(str) {
// write code here
const arr = str.split(' ').filter(item => /^[a-z]/gi.test(item));

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