News for hackers. Stuff that matters.
Re:JavaScript Equality Minesweeper by styfle on Monday September 17, 2018 @12:10PM (#18007207)
This is especially useful if you are using TypeScript (or Flow I assume) because the type checker can give you an error at compile time. After performing the runtime check, TypeScript will know that null/undefined is not possible.

See this example https://goo.gl/AyoC3T

There are no comments on this comment yet.