`null` vs. `undefined` in TypeScript land

Post author says:

“if (err) {“

readers, don’t do this. maybe ‘err’ variable will be 0, false but that does not mean null or undefined.

just write err==null

it will check for null or undefined same time.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.