mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Update _.transform docs.
Former-commit-id: ff26ef26e906410787a8819b9c653f20bbdeff38
This commit is contained in:
11
dist/lodash.compat.js
vendored
11
dist/lodash.compat.js
vendored
@@ -2392,11 +2392,12 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Transforms an `object` to a new `accumulator` object which is the result
|
||||
* of running each of its elements through the `callback`, with each `callback`
|
||||
* execution potentially mutating the `accumulator` object. The `callback` is
|
||||
* bound to `thisArg` and invoked with four arguments; (accumulator, value, key, object).
|
||||
* Callbacks may exit iteration early by explicitly returning `false`.
|
||||
* An alternative to `_.reduce`, this method transforms an `object` to a new
|
||||
* `accumulator` object which is the result of running each of its elements
|
||||
* through the `callback`, with each `callback` execution potentially mutating
|
||||
* the `accumulator` object. The `callback` is bound to `thisArg` and invoked
|
||||
* with four arguments; (accumulator, value, key, object). Callbacks may exit
|
||||
* iteration early by explicitly returning `false`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
|
||||
11
dist/lodash.js
vendored
11
dist/lodash.js
vendored
@@ -2059,11 +2059,12 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Transforms an `object` to a new `accumulator` object which is the result
|
||||
* of running each of its elements through the `callback`, with each `callback`
|
||||
* execution potentially mutating the `accumulator` object. The `callback` is
|
||||
* bound to `thisArg` and invoked with four arguments; (accumulator, value, key, object).
|
||||
* Callbacks may exit iteration early by explicitly returning `false`.
|
||||
* An alternative to `_.reduce`, this method transforms an `object` to a new
|
||||
* `accumulator` object which is the result of running each of its elements
|
||||
* through the `callback`, with each `callback` execution potentially mutating
|
||||
* the `accumulator` object. The `callback` is bound to `thisArg` and invoked
|
||||
* with four arguments; (accumulator, value, key, object). Callbacks may exit
|
||||
* iteration early by explicitly returning `false`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
|
||||
Reference in New Issue
Block a user