mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-20 05:14:44 +00:00
.
This commit is contained in:
parent
9fff29ba6c
commit
00c3b50fca
7278 changed files with 0 additions and 1778943 deletions
29
node_modules/lodash/tap.js
generated
vendored
29
node_modules/lodash/tap.js
generated
vendored
|
@ -1,29 +0,0 @@
|
|||
/**
|
||||
* 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 sequence in order to modify intermediate results.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 0.1.0
|
||||
* @category Seq
|
||||
* @param {*} value The value to provide to `interceptor`.
|
||||
* @param {Function} interceptor The function to invoke.
|
||||
* @returns {*} Returns `value`.
|
||||
* @example
|
||||
*
|
||||
* _([1, 2, 3])
|
||||
* .tap(function(array) {
|
||||
* // Mutate input array.
|
||||
* array.pop();
|
||||
* })
|
||||
* .reverse()
|
||||
* .value();
|
||||
* // => [2, 1]
|
||||
*/
|
||||
function tap(value, interceptor) {
|
||||
interceptor(value);
|
||||
return value;
|
||||
}
|
||||
|
||||
module.exports = tap;
|
Loading…
Add table
Add a link
Reference in a new issue