diff options
Diffstat (limited to 'lib/transform.js')
-rw-r--r-- | lib/transform.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/transform.js b/lib/transform.js index d3c1d6a..ef254a1 100644 --- a/lib/transform.js +++ b/lib/transform.js @@ -18,11 +18,8 @@ import wrapAsync from './internal/wrapAsync'; * @param {Array|Iterable|Object} coll - A collection to iterate over. * @param {*} [accumulator] - The initial state of the transform. If omitted, * it will default to an empty Object or Array, depending on the type of `coll` - * @param {Function} iteratee - A function applied to each item in the - * collection that potentially modifies the accumulator. The `iteratee` is - * passed a `callback(err)` which accepts an optional error as its first - * argument. If an error is passed to the callback, the transform is stopped - * and the main `callback` is immediately called with the error. + * @param {AsyncFunction} iteratee - A function applied to each item in the + * collection that potentially modifies the accumulator. * Invoked with (accumulator, item, key, callback). * @param {Function} [callback] - A callback which is called after all the * `iteratee` functions have finished. Result is the transformed accumulator. |