keyBy<T, K>(array, iteratee): IfIndexType<K, { [key in K]: T }, { [key in K]?: T }>
Creates an object composed of keys generated from the results of running each element of collection thru iteratee. The corresponding value of each key is the last element responsible for generating the key.
Contribution to minified bundle size, when it is the only function imported:
Creates an object composed of keys generated from the results of running each element of
collection
thruiteratee
. The corresponding value of each key is the last element responsible for generating the key.Contribution to minified bundle size, when it is the only function imported: