-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Natalia Makishvili #74
base: master
Are you sure you want to change the base?
Conversation
А где |
добавила |
|
|
||
for (var i = 1; i < arguments.length; i++) { | ||
collection = arguments[i](collection); |
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
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, получилось более громоздко, чем в текущей реализации.
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.
Покажи
правки внесены |
module.exports.query = function (collection /* операторы через запятую */) { | ||
module.exports.query = function () { | ||
var args = [].slice.call(arguments); | ||
var collection = args[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.
var collection = args.shift();
следующую строчку можно удалить
@mokhov 🆙 правки внесены |
No description provided.