Plain vanilla JS (and therefore TypeScript) still lacks one killer feature from the Coffee family: Null propagation operators (`a ? b` => `a != null ? a : b`, `a?.x` => `a == null ? null : a.x`, etc). Even C# has it.
There is a Stage 1 Null Propagation proposal: https://github.com/tc39/proposal-optional-chaining
https://github.com/babel/babel/tree/7.0/packages/babel-plugi...
However the `a?.b` form is coming (it's not just null propagation, it's an Existence Operator). It's called "optional chaining"
Fine.
s/null/undefined
The problem still exists.
A cleaner syntax is nice for sure, but it’s not exactly unworkable as is (and promotes flatter data, generally a good thing).
But yes, it’ll be nice if/when the new syntax drops.
!== works