Skip to content

Use if instead of binary operator #926

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
May 27, 2017
Merged

Conversation

timwis
Copy link
Contributor

@timwis timwis commented May 24, 2017

Feel free to reject if you feel strongly, but I propose this because the idea of using && as a short-hand kind of conditional is something that newer JavaScript developers may not have seen before. Since the purpose of this page is to illustrate a store pattern, I'd suggest limiting cognitive load where possible. (Using && may be better placed in a JS tips & tricks page)

@chrisvfritz chrisvfritz merged commit 4900abf into vuejs:master May 27, 2017
@timwis timwis deleted the patch-1 branch May 28, 2017 19:32
kazupon pushed a commit to kazupon/vuejs.org that referenced this pull request Oct 1, 2017
* add contributor

* rearrange order

* Use `if` instead of binary operator (vuejs#926)
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