-
Notifications
You must be signed in to change notification settings - Fork 70
Conversation
honest-hrundel
commented
Nov 2, 2016
🍅 Не пройден линтинг или базовые тесты
honest-hrundel
commented
Nov 2, 2016
🍅 Не пройден линтинг или базовые тесты
honest-hrundel
commented
Nov 2, 2016
🍏 Пройдено тестов 15 из 15
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.
array -- плохое название переменной
оно не отражает сути
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.
Ты тут возвращаешь значение, названия таких функций принято начинать со слова get
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.
func тоже непонятно название.
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.
copy? Что можно понять по переменной, которая называется копия?
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.
С copy та же самая история, что и выше
vetoshko
commented
Nov 4, 2016
🍅
honest-hrundel
commented
Nov 5, 2016
🍏 Пройдено тестов 15 из 15
NovoselovaNatalia
commented
Nov 5, 2016
🍏
vetoshko
commented
Nov 6, 2016
🚀
@hrundik
hrundik
left a comment
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.
Object.assign -- это ES2015. Мы пока остаёмся в рамках ES5, так что эту функцию использовать нельзя
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.
В качестве упражнения можете этот кусочек переделать на reduce, тогда можно будет переменную copyCollection не изменять. Но тут я не настаиваю.
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.
sort ожидает, что компаратор возвращает число. А у вас возвращается логическое значение. И все значения, для которых условие не выполняются, преобразуются в 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.
Object.assign нельзя использовать
honest-hrundel
commented
Nov 7, 2016
🍅 Не пройден линтинг или базовые тесты
honest-hrundel
commented
Nov 7, 2016
🍅 Не пройден линтинг или базовые тесты
honest-hrundel
commented
Nov 7, 2016
🍅 Не пройден линтинг или базовые тесты
honest-hrundel
commented
Nov 7, 2016
🍅 Не пройден линтинг или базовые тесты
honest-hrundel
commented
Nov 7, 2016
🍅 Не пройден линтинг или базовые тесты
honest-hrundel
commented
Nov 7, 2016
🍅 Пройдено тестов 12 из 15
honest-hrundel
commented
Nov 7, 2016
🍅 Пройдено тестов 12 из 15
honest-hrundel
commented
Nov 7, 2016
🍅 Пройдено тестов 11 из 15
No description provided.