News for hackers. Stuff that matters.
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.
Re:Love for TypeScript by noselasd on Saturday July 30, 2016 @07:19AM (#12192522)
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.
Re:Love for TypeScript by eyko on Saturday July 30, 2016 @08:56AM (#12192774)
They behave exactly like they would in JavaScript.