Hacker News new | ask | show | jobs
by foldr 811 days ago
>Those are the intended semantics of JS

They're actually not. Out of bounds indexing is fine, you just get undefined as the result.