Lodash.transform

An alternative to _.reduce; this method transforms object to a new accumulator object which is the result of running each of its own enumerable string keyed properties thru iteratee, with each invocation potentially mutating the accumulator object. If accumulator is not provided, a new object with the same [Prototype] will be used. The iteratee is invoked with four arguments: (accumulator, value, key, object). Iteratee functions may exit iteration early by explicitly returning false.

struct Lodash
nothrow @trusted @safe ref
transform
(
T
U
)
(
auto ref T iteratee
,
auto ref U accumulator
)

Return Value

Type: auto ref

- Lodash chained on (*): the accumulated value.

Meta