Skip to content

Conversation

@fbitti
Copy link

@fbitti fbitti commented Nov 1, 2017

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