(arr: string[])
| 14 | * @return {!Object} |
| 15 | */ |
| 16 | const toIndexedObject = (arr: string[]): Record<string, number> => |
| 17 | arr.reduce<Record<string, number>>((acc, val, idx) => { |
| 18 | acc[val] = idx; |
| 19 | return acc; |
| 20 | }, {}); |
| 21 | |
| 22 | /** |
| 23 | * @type {!Array<!Object>} |
nothing calls this directly
no outgoing calls
no test coverage detected