Skip to content

Comments

Change order of value assignment#36

Open
jaulz wants to merge 1 commit intokjanoudi:masterfrom
jaulz:patch-5
Open

Change order of value assignment#36
jaulz wants to merge 1 commit intokjanoudi:masterfrom
jaulz:patch-5

Conversation

@jaulz
Copy link
Contributor

@jaulz jaulz commented Nov 18, 2016

In case the value is 0 and the default value is undefined, the result was undefined before (0 || undefined => undefined). However, the expectation would be that the result is 0.

In case the value is 0 and the default value is undefined, the result was undefined before (0 || undefined => undefined). However, the expectation would be that the result is 0.
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.

1 participant