Skip to content

Removing Ifs for a more declarative style #14

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

Merged
merged 2 commits into from
Oct 6, 2017

Conversation

machad0
Copy link
Contributor

@machad0 machad0 commented Oct 6, 2017

Just replaced the If statements in factorial and countdown functions to turn them a little more declarative. IMHO, Ternaries reinforce the use and readability of high orders functions as well.

Sorry about the bad commit squash, btw.

fix: typo

docs: updating changes in translations files

chore: replacing ifs in examples.js file

fix: typo
@matheusml
Copy link
Contributor

Awesome. Thanks!

@matheusml matheusml merged commit 03bd394 into js-functional:master Oct 6, 2017
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.

2 participants