Skip to content

Conversation

@korzio
Copy link

@korzio korzio commented Mar 4, 2018

No description provided.

agg = (arguments.length === 0) ? (agg) : (agg + arguments[0]);
return innerAgg;
};
innerAgg.valueOf = function() {
Copy link
Author

Choose a reason for hiding this comment

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

👍

Copy link
Author

Choose a reason for hiding this comment

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

Как вариант, в valueOf можно обнулять значение agg

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.

3 participants