主页
TypeScript
TypeScript Null & Undefined
demo_null_bounds
运行 ❯
×
更改方向
保存代码
更改主题
let array: number[] = [1, 2, 3]; let value = array[0]; // with `noUncheckedIndexedAccess` this has the type `number | undefined`