DEV Community

Discussion on: Considering `??` vs `||`

Collapse
pmudra profile image
Philipp Mudra
  • Array get index nullability

For the sake of completeness this is also supported:

let x
x?.[0] // undefined
Enter fullscreen mode Exit fullscreen mode