2 ms·
`if (foo)` and `if (foo === true)` aren't equivalent.
by nilved 15y ago
`if (foo)` and `if (foo === true)` aren't equivalent.
- Hovertruck 15y agoAccording to the TypedJS annotation for the function they are. The function definition says that obj.valid has to be a boolean, so any other type of falsy input (0, undefined, null, etc) should never be provided as an argument here.