From 199b2e1a3a2c0bc9511c18d266094fa111ca1b10 Mon Sep 17 00:00:00 2001 From: Jason Trill Date: Mon, 1 Feb 2016 11:32:17 -0800 Subject: [PATCH] Reword docs for `_.tap` and `_.thru`. [ci skip] --- lodash.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lodash.js b/lodash.js index ced1c9483..81573b54d 100644 --- a/lodash.js +++ b/lodash.js @@ -7059,10 +7059,9 @@ } /** - * This method invokes `interceptor` and returns `value`. The interceptor is - * invoked with one argument; (value). The purpose of this method is to "tap into" - * a method chain in order to perform operations on intermediate results within - * the chain. + * This method invokes `interceptor` and returns `value`. The interceptor + * is invoked with one argument; (value). The purpose of this method is to + * "tap into" a method chain in order to modify intermediate results. * * @static * @memberOf _ @@ -7074,6 +7073,7 @@ * * _([1, 2, 3]) * .tap(function(array) { + * // Mutate input array. * array.pop(); * }) * .reverse() @@ -7087,6 +7087,8 @@ /** * This method is like `_.tap` except that it returns the result of `interceptor`. + * The purpose of this method is to "pass thru" values replacing intermediate + * results in a method chain. * * @static * @memberOf _