- Preparing search index...
- The search index is not available
Documentation
Function arrayToMapWithGetter
- arrayToMapWithGetter<T>(arr: T[], getSelector: ((item: T) => string)): Record<string, T>
-
Parameters
-
arr: T[]
-
getSelector: ((item: T) => string)
-
- (item: T): string
-
Returns string
Returns Record<string, T>