diff --git a/doc/README.md b/doc/README.md index e3bfcb023..5e30bb5b9 100644 --- a/doc/README.md +++ b/doc/README.md @@ -729,13 +729,13 @@ Invokes `interceptor` with the `value` as the first argument, and then returns ` #### Example ```js -_.chain([1, 2, 3, 200]) +_([1, 2, 3, 4]) .filter(function(num) { return num % 2 == 0; }) .tap(alert) .map(function(num) { return num * num; }) .value(); -// => // [2, 200] (alerted) -// => [4, 40000] +// => // [2, 4] (alerted) +// => [4, 16] ``` * * * diff --git a/lodash.js b/lodash.js index 1be044822..c98c69c77 100644 --- a/lodash.js +++ b/lodash.js @@ -4230,13 +4230,13 @@ * @returns {Mixed} Returns `value`. * @example * - * _.chain([1, 2, 3, 200]) + * _([1, 2, 3, 4]) * .filter(function(num) { return num % 2 == 0; }) * .tap(alert) * .map(function(num) { return num * num; }) * .value(); - * // => // [2, 200] (alerted) - * // => [4, 40000] + * // => // [2, 4] (alerted) + * // => [4, 16] */ function tap(value, interceptor) { interceptor(value); diff --git a/lodash.underscore.js b/lodash.underscore.js index 0467fe280..4eb97d25d 100644 --- a/lodash.underscore.js +++ b/lodash.underscore.js @@ -3633,13 +3633,13 @@ * @returns {Mixed} Returns `value`. * @example * - * _.chain([1, 2, 3, 200]) + * _([1, 2, 3, 4]) * .filter(function(num) { return num % 2 == 0; }) * .tap(alert) * .map(function(num) { return num * num; }) * .value(); - * // => // [2, 200] (alerted) - * // => [4, 40000] + * // => // [2, 4] (alerted) + * // => [4, 16] */ function tap(value, interceptor) { interceptor(value);