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: use pipe and overProperty #123

Merged
merged 5 commits into from
Jan 7, 2020

Conversation

fisker
Copy link
Collaborator

@fisker fisker commented Jan 6, 2020

overProperty function is from #122
pipe function is from #121

please merge them first

index.js Outdated
const overFields = pipe(
fields
.filter(({ over }) => over)
.map(({ key, over }) => overProperty(key, over)),
Copy link
Owner

Choose a reason for hiding this comment

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

a filter + map could be combined to a reduce.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

@keithamus keithamus merged commit 0c97105 into keithamus:master Jan 7, 2020
@keithamus
Copy link
Owner

🎉 This PR is included in version 1.37.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@fisker fisker deleted the pipe-and-over-property branch January 7, 2020 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants