-
Notifications
You must be signed in to change notification settings - Fork 113
Conversation
honest-hrundel
commented
Oct 25, 2018
🍅 Пройдено тестов 16 из 26
honest-hrundel
commented
Oct 25, 2018
🍅 Не пройден линтинг или базовые тесты
honest-hrundel
commented
Oct 25, 2018
🍅 Пройдено тестов 16 из 26
honest-hrundel
commented
Oct 25, 2018
🍅 Пройдено тестов 16 из 26
honest-hrundel
commented
Oct 25, 2018
🍅 Пройдено тестов 17 из 26
honest-hrundel
commented
Oct 25, 2018
🍅 Пройдено тестов 17 из 26
honest-hrundel
commented
Oct 25, 2018
🍅 Пройдено тестов 18 из 26
honest-hrundel
commented
Oct 25, 2018
🍅 Пройдено тестов 18 из 26
honest-hrundel
commented
Oct 25, 2018
🍅 Пройдено тестов 18 из 26
honest-hrundel
commented
Oct 25, 2018
🍅 Пройдено тестов 22 из 26
honest-hrundel
commented
Oct 25, 2018
🍅 Пройдено тестов 22 из 26
honest-hrundel
commented
Oct 25, 2018
🍅 Пройдено тестов 22 из 26
honest-hrundel
commented
Oct 25, 2018
🍅 Пройдено тестов 19 из 23
honest-hrundel
commented
Oct 25, 2018
🍅 Пройдено тестов 22 из 26
honest-hrundel
commented
Oct 25, 2018
🍅 Пройдено тестов 22 из 26
honest-hrundel
commented
Oct 25, 2018
🍅 Пройдено тестов 22 из 26
honest-hrundel
commented
Oct 25, 2018
🍅 Пройдено тестов 22 из 26
honest-hrundel
commented
Oct 25, 2018
🍅 Пройдено тестов 22 из 26
honest-hrundel
commented
Oct 25, 2018
🍅 Пройдено тестов 22 из 26
honest-hrundel
commented
Oct 25, 2018
🍏 Пройдено тестов 26 из 26
honest-hrundel
commented
Oct 25, 2018
@plotnikovn обрати внимание: решено доп. задание
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
– длина строки не может быть отрицательной
– phone <= 0 не лучшая идея сравнивать на строку с числом
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
длину телефона можно не проверять, т.к. в регулярном выражении ты задаешь фиксированное количество символов
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
давай осмысленные названия функциям
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут лучше поменять местами, и тогда проверка станет проще
if (email === undefined) { return true; } return typeof email === 'string' && email.length;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
можно сразу сделать return
return check(...) || check2(...);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (!generalCheck(...)) { ... }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
аналогично
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
здесь лучше подойдет .some
https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/Array/some
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
лучше сделать отдельную функцию для форматирования записи
No description provided.