Open fbitti opened 6 years ago
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 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".