4 ms·What happens when x is 0?by gprasanth 10y agoWhat happens when x is 0?deleted 10y ago[deleted]johnfn 10y agoGood question - edited my code to be correct.ww520 10y agoI think it's just the sample code needs to be x === null. Nothing to do with TypeScript. The sample is a good example to illustrate the union type.noselasd 10y agoOn that note, are there any documentation that explains the == and === operators in Typescript ? The language spec is only briefly acknowledges the existence of those operators.eyko 10y agoThey behave exactly like they would in JavaScript.