Function associateByNotNullish
- associateByNotNullish<K, V>(values: Iterable<V>, keySelector: ((item: V) => undefined | K), destination?: Map<K, V>): Map<K, V>
-
Parameters
-
values: Iterable<V>
-
keySelector: ((item: V) => undefined | K)
-
- (item: V): undefined | K
-
Returns undefined | K
-
destination: Map<K, V> = ...
Returns Map<K, V>