this post was submitted on 29 Jul 2025
-1 points (44.4% liked)
Programming
14184 readers
2 users here now
All things programming and coding related. Subcommunity of Technology.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I don't really get what you're saying. JS doesn't throw on out-of-bounds array access and instead returns
undefined
, even in Strict mode. Obviously TypeScript needs to match the actual behavior with the typing.