Content-Length: 233438 | pFad | https://github.com/lodash/lodash/pull/5785

C8 chore: combine the if statements into one by KEHyeon · Pull Request #5785 · lodash/lodash · GitHub
Skip to content

chore: combine the if statements into one #5785

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 1 commit into from
Jul 10, 2024
Merged

Conversation

KEHyeon
Copy link
Contributor

@KEHyeon KEHyeon commented Dec 11, 2023

In the above line, the function is returned when both the variables are undefined, which makes it evident that when one of the two variables is undefined, one of them must have a value. So I personally think reducing the two if statements as one would be clearer.

@jdalton jdalton merged commit 6a2cc1d into lodash:main Jul 10, 2024
@KEHyeon
Copy link
Contributor Author

KEHyeon commented Jul 16, 2024

thank youuuuuuuu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/lodash/lodash/pull/5785

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy