Skip to main content

TsConfig Settings

Compiler Options

Next Advanced

Always use strict

noUncheckedIndexedAccess

When enabled, accessing someNumbers[i] gives us a number | undefined back rather than just a number. This forces us to check for undefined whenever we access an array element by its index, which is more annoying but also more safe. Each team needs to decide whether the added safety is worth the hassle or not.