added Map.groupBy
This commit is contained in:
3
types/polyfill.d.ts
vendored
Normal file
3
types/polyfill.d.ts
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
declare interface MapConstructor {
|
||||
groupBy<K, V>(arr: V[], fn: (v: V) => K): Map<K, V[]>;
|
||||
}
|
||||
Reference in New Issue
Block a user