![Matt Pocock on Twitter: "TypeScript annoys me sometimes. So, I decided to do something about it... https://t.co/vkIptgYLD8" / Twitter Matt Pocock on Twitter: "TypeScript annoys me sometimes. So, I decided to do something about it... https://t.co/vkIptgYLD8" / Twitter](https://pbs.twimg.com/media/FpazTlNXsAEs__9.jpg)
Matt Pocock on Twitter: "TypeScript annoys me sometimes. So, I decided to do something about it... https://t.co/vkIptgYLD8" / Twitter
Infer type guard => array.filter(x => !!x) should refine Array<T|null> to Array<T> · Issue #16069 · microsoft/TypeScript · GitHub
![javascript - How to filter an array of objects and return the array of objects using typescript - Stack Overflow javascript - How to filter an array of objects and return the array of objects using typescript - Stack Overflow](https://i.stack.imgur.com/2BfOb.png)