added Map.groupBy

This commit is contained in:
wea_ondara
2023-09-26 16:42:02 +02:00
parent 089ac33d93
commit 641a4425aa
4 changed files with 20 additions and 0 deletions

3
types/polyfill.d.ts vendored Normal file
View File

@@ -0,0 +1,3 @@
declare interface MapConstructor {
groupBy<K, V>(arr: V[], fn: (v: V) => K): Map<K, V[]>;
}