mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 10:27:49 +00:00
Add default accumulator note to _.transform docs. [ci skip]
This commit is contained in:
@@ -13030,15 +13030,16 @@
|
|||||||
* An alternative to `_.reduce`; this method transforms `object` to a new
|
* An alternative to `_.reduce`; this method transforms `object` to a new
|
||||||
* `accumulator` object which is the result of running each of its own
|
* `accumulator` object which is the result of running each of its own
|
||||||
* enumerable string keyed properties thru `iteratee`, with each invocation
|
* enumerable string keyed properties thru `iteratee`, with each invocation
|
||||||
* potentially mutating the `accumulator` object. The iteratee is invoked
|
* potentially mutating the `accumulator` object. If `accumulator` is not
|
||||||
* with four arguments: (accumulator, value, key, object). Iteratee functions
|
* provided, a new object with the same `[[Prototype]]` will be used. The
|
||||||
* may exit iteration early by explicitly returning `false`.
|
* iteratee is invoked with four arguments: (accumulator, value, key, object).
|
||||||
|
* Iteratee functions may exit iteration early by explicitly returning `false`.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
* @since 1.3.0
|
* @since 1.3.0
|
||||||
* @category Object
|
* @category Object
|
||||||
* @param {Array|Object} object The object to iterate over.
|
* @param {Object} object The object to iterate over.
|
||||||
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
|
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
|
||||||
* @param {*} [accumulator] The custom accumulator value.
|
* @param {*} [accumulator] The custom accumulator value.
|
||||||
* @returns {*} Returns the accumulated value.
|
* @returns {*} Returns the accumulated value.
|
||||||
|
|||||||
Reference in New Issue
Block a user