Interface MapConstructor
interface MapConstructor {
new MapConstructor(): Map<any, any>;
new MapConstructor<K, V>(entries?: readonly (readonly [K, V])[]): Map<K, V>;
new MapConstructor(): Map<any, any>;
new MapConstructor<K, V>(iterable?: Iterable<readonly [K, V]>): Map<K, V>;
"[species]": MapConstructor;
prototype: Map<any, any>;
groupBy<K, T>(
items: Iterable<T>,
keySelector: (item: T, index: number) => K,
): Map<K, T[]>;
}
new MapConstructor(): Map<any, any>;
new MapConstructor<K, V>(entries?: readonly (readonly [K, V])[]): Map<K, V>;
new MapConstructor(): Map<any, any>;
new MapConstructor<K, V>(iterable?: Iterable<readonly [K, V]>): Map<K, V>;
"[species]": MapConstructor;
prototype: Map<any, any>;
groupBy<K, T>(
items: Iterable<T>,
keySelector: (item: T, index: number) => K,
): Map<K, T[]>;
}
Index
Constructors
constructor
- new MapConstructor(): Map<any, any>
Returns Map<any, any>
- new MapConstructor<K, V>(entries?: readonly (readonly [K, V])[]): Map<K, V>
Type Parameters
Returns Map<K, V>
- new MapConstructor(): Map<any, any>
Returns Map<any, any>
- new MapConstructor<K, V>(iterable?: Iterable<readonly [K, V]>): Map<K, V>
Type Parameters
Returns Map<K, V>
Groups members of an iterable according to the return value of the passed callback.