TypeScript reporting Object is possibly 'undefined' when it shouldn't

前端 未结 3 2080
面向向阳花
面向向阳花 2021-01-20 16:53

I\'m trying to understand why TypeScript is giving me the following error: Object is possibly \'undefined\'

Here\'s the code snippet:



        
3条回答
提交回复
热议问题