Lodash.invertBy

This method is like _.invert except that the inverted object is generated from the results of running each element of object thru iteratee. The corresponding inverted value of each inverted key is an array of keys responsible for generating the inverted value. The iteratee is invoked with one argument: (value).

struct Lodash
nothrow @trusted @safe ref
invertBy
(
T = Any
)
(
auto ref T iteratee = T.init
)

Return Value

Type: auto ref

- Lodash chained on (Object): the new inverted object.

Meta