Convince me I am wrong: This should not be a type error, right? - I asserted it’s an object - I am using `?.` for property access www.typescriptlang.org/play/#code/G...
Post
`typeof null === 'object'` so I think you might need to check for null. And then I tend to find 'a' in x more reliable in TS
0 reposts0 likes