Skip to content

Improve code readability - #184

Open
fbitti wants to merge 1 commit into
openexchangerates:masterfrom
fbitti:master
Open

Improve code readability#184
fbitti wants to merge 1 commit into
openexchangerates:masterfrom
fbitti:master

Conversation

@fbitti

@fbitti fbitti commented Nov 1, 2017

Copy link
Copy Markdown

Boolean() does the same thing as !!, both of them convert an Object to its true or false equivalent. However !! is cryptic and Boolean() is obvious.
I dedicate this PR submission to @gordonmzhu: "A code that is easier to read will be read more".

Boolean() does the same as !!, which converts an Object to its true or false equivalent. However !! is cryptic and Boolean() is crystal clear.
I dedicate this PR submission to @gordonmzhu: "A code that is easier to read will be read more".
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