Javascript – Why typescript doesn't check undefined when calling specific array index
I'm trying to investigate why there is a runtime error when I called article.posts[0].title I have post and posts and I want to call the first post of article (posts[0].title). typescript assume I have posts size greater than 0 and…