Skip to content
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

Refactor, split code into modules #79

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sheppardv
Copy link

@sheppardv sheppardv commented Jan 28, 2021

  • refactor
  • split code into modules
  • upgrade ts, jest versions

No new code created, just split.

upgrade ts, jest
}

if (aliases.length > 0) {
Object.assign(params, aliases.reduce((acc, alias) =>
Copy link
Author

@sheppardv sheppardv Jan 28, 2021

Choose a reason for hiding this comment

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

This code also has no value since Object.assign returns new object but value is ignored.
Was it meant to reassign params?

Copy link
Owner

Choose a reason for hiding this comment

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

I’m pretty sure it transfers to the target as well as returns the updated target. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign. AFK to confirm though.

Copy link
Author

Choose a reason for hiding this comment

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

My bad, you are totally right!

Choose a reason for hiding this comment

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

It would be nice for the file name spelling to match the builder function spelling : aggregate

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.

4 participants