Re:Love for TypeScript
by ww520 on Saturday July 30, 2016 @03:41AM
(#12192042)
I 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.
[ Parent
| on HN ]
On 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.