declare interface MapConstructor { groupBy(arr: V[], fn: (v: V) => K): Map; }