Encountering an issue
Having trouble with Type '(number | undefined)[]' is not assignable to type 'number[]'.
whenever attempting to implement
const nums: number[] = [...'a'.matchAll(/a/g)].map(match => match.index);
despite no mention of this property being optional on MDN. Could this be a bug or am I overlooking something?