StringHashTable.fromArrayGroupBy Method

Initializes a new StringHashTable and groups the elements from array into an Array with keys selected from them by keySelector.
 
 
Static This method is static.

Parameters

array

Type: Array
The array to populate the hash table with.
keySelector

Type: Function
A function which returns a String value which may be null to use as a key for each element in array.

Return Value


Type: StringHashTable
The hash table.