I'm wondering why using !! is best and Boolean() is good but new Boolean is bad,can you provide some references or some pratice to help me understand this rule? I know that using new Boolean can new an object and we can other methods to this object ,etc.Thank you for answering
https://github.com/airbnb/javascript#coercion--booleans
I'm wondering why using !! is best and Boolean() is good but new Boolean is bad,can you provide some references or some pratice to help me understand this rule? I know that using new Boolean can new an object and we can other methods to this object ,etc.Thank you for answering
https://github.com/airbnb/javascript#coercion--booleans