From ff74ff4149a71df015257ca815698e79f9a9f451 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 27 May 2013 22:30:50 -0700 Subject: [PATCH] Tweak `_.transform` docs. Former-commit-id: dc7100411a403be4cce6b3784e1dd81cc9423b76 --- dist/lodash.compat.js | 4 ++-- doc/README.md | 2 +- lodash.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/lodash.compat.js b/dist/lodash.compat.js index 9541b516b..ec49eb880 100644 --- a/dist/lodash.compat.js +++ b/dist/lodash.compat.js @@ -2392,9 +2392,9 @@ } /** - * Transforms an `object` to an new `accumulator` object which is the result + * 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 + * 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`. * diff --git a/doc/README.md b/doc/README.md index 56e968971..5723c287e 100644 --- a/doc/README.md +++ b/doc/README.md @@ -3330,7 +3330,7 @@ _.pick({ 'name': 'moe', '_userid': 'moe1' }, function(value, key) { ### `_.transform(collection [, callback=identity, accumulator, thisArg])` # [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2443 "View in source") [Ⓣ][1] -Transforms an `object` to an 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`. +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`. #### Arguments 1. `collection` *(Array|Object)*: The collection to iterate over. diff --git a/lodash.js b/lodash.js index 7bc10572f..2360afcb3 100644 --- a/lodash.js +++ b/lodash.js @@ -2411,9 +2411,9 @@ } /** - * Transforms an `object` to an new `accumulator` object which is the result + * 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 + * 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`. *