An alternative to reduce; this function 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 plain object ({}) will be used. Iteratee functions may exit iteration early by explicitly returning false.
Differences from lodash:
{}Contribution to minified bundle size, when it is the only function imported:
An alternative to
reduce; this function transformsobjectto a newaccumulatorobject which is the result of running each of its own enumerable string keyed properties thruiteratee, with each invocation potentially mutating theaccumulatorobject. Ifaccumulatoris not provided, a new plain object ({}) will be used. Iteratee functions may exit iteration early by explicitly returningfalse.Differences from lodash:
{}Contribution to minified bundle size, when it is the only function imported: