mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 10:27:49 +00:00
Reword docs for _.tap and _.thru. [ci skip]
This commit is contained in:
committed by
John-David Dalton
parent
a43e4f10ef
commit
199b2e1a3a
10
lodash.js
10
lodash.js
@@ -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 _
|
||||||
|
|||||||
Reference in New Issue
Block a user