News for hackers. Stuff that matters.
Re:TypedJS: Sanity Check your JavaScript by nilved on Wednesday February 08, 2012 @06:16AM (#3566099)
`if (foo)` and `if (foo === true)` aren't equivalent.
Re:TypedJS: Sanity Check your JavaScript by Hovertruck on Wednesday February 08, 2012 @10:25AM (#3566846)
According 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.