Reword docs for _.tap and _.thru. [ci skip]

This commit is contained in:
Jason Trill
2016-02-01 11:32:17 -08:00
committed by John-David Dalton
parent a43e4f10ef
commit 199b2e1a3a

View File

@@ -7059,10 +7059,9 @@
} }
/** /**
* This method invokes `interceptor` and returns `value`. The interceptor is * This method invokes `interceptor` and returns `value`. The interceptor
* invoked with one argument; (value). The purpose of this method is to "tap into" * is invoked with one argument; (value). The purpose of this method is to
* a method chain in order to perform operations on intermediate results within * "tap into" a method chain in order to modify intermediate results.
* the chain.
* *
* @static * @static
* @memberOf _ * @memberOf _
@@ -7074,6 +7073,7 @@
* *
* _([1, 2, 3]) * _([1, 2, 3])
* .tap(function(array) { * .tap(function(array) {
* // Mutate input array.
* array.pop(); * array.pop();
* }) * })
* .reverse() * .reverse()
@@ -7087,6 +7087,8 @@
/** /**
* This method is like `_.tap` except that it returns the result of `interceptor`. * 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 * @static
* @memberOf _ * @memberOf _