4 ms·
No, (Foo | undefined)[] means an array of elements that are either of type Foo or are undefined. Foo[] | undefined[] means either 1) an array of Foo, or 2) an
by jiaweihli 10y ago
No, (Foo | undefined)[] means an array of elements that are either of type Foo or are undefined.
Foo[] | undefined[] means either 1) an array of Foo, or 2) an array of undefined.
- vosper 10y agoAhh got it - thanks!