I'm porting my fable 1.x React Native App to Fable 2.x and I'm having problems with Array.groupBy .
let mappedCityGroups =
requests
|> Array.map (fun x ->
match x with
| MeterReadingRequest x -> x.GetCity()
| MeterChangeRequest x -> x.GetCity())
printfn "mapped"
let cityGroups =
requests
|> Array.groupBy (fun x ->
match x with
| MeterReadingRequest x -> x.GetCity()
| MeterChangeRequest x -> x.GetCity())
the mapping part works, but during groupby it fails with "Cannot read property 'MoveNext' of undefined"