mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Bump to v4.2.0.
This commit is contained in:
8
tap.js
8
tap.js
@@ -1,10 +1,9 @@
|
||||
define([], function() {
|
||||
|
||||
/**
|
||||
* 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 _
|
||||
@@ -16,6 +15,7 @@ define([], function() {
|
||||
*
|
||||
* _([1, 2, 3])
|
||||
* .tap(function(array) {
|
||||
* // Mutate input array.
|
||||
* array.pop();
|
||||
* })
|
||||
* .reverse()
|
||||
|
||||
Reference in New Issue
Block a user