StringHashSet.fromArray Method

Initializes a new StringHashSet using the elements from array with values selected by valueSelector.
 
 
Static This method is static.

Parameters

array

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

Type: Function
(optional) A function which returns a String value which may be null to use as a value for each element in array.
Optional: True

Return Value


Type: StringHashSet
The hash set.