PHP 8.2.30
Preview: tap.js Size: 793 B
//opt/alt/alt-nodejs9/root/lib/node_modules/npm/node_modules/cli-table2/node_modules/lodash/chain/tap.js

/**
 * This method invokes `interceptor` and returns `value`. The interceptor is
 * bound to `thisArg` and 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.
 *
 * @static
 * @memberOf _
 * @category Chain
 * @param {*} value The value to provide to `interceptor`.
 * @param {Function} interceptor The function to invoke.
 * @param {*} [thisArg] The `this` binding of `interceptor`.
 * @returns {*} Returns `value`.
 * @example
 *
 * _([1, 2, 3])
 *  .tap(function(array) {
 *    array.pop();
 *  })
 *  .reverse()
 *  .value();
 * // => [2, 1]
 */
function tap(value, interceptor, thisArg) {
  interceptor.call(thisArg, value);
  return value;
}

module.exports = tap;

Directory Contents

Dirs: 0 × Files: 20

Name Size Perms Modified Actions
748 B lrw-r--r-- 2021-09-28 11:28:34
Edit Download
45 B lrw-r--r-- 2021-09-28 11:28:34
Edit Download
45 B lrw-r--r-- 2021-09-28 11:28:34
Edit Download
5.44 KB lrw-r--r-- 2021-09-28 11:28:34
Edit Download
44 B lrw-r--r-- 2021-09-28 11:28:34
Edit Download
46 B lrw-r--r-- 2021-09-28 11:28:34
Edit Download
44 B lrw-r--r-- 2021-09-28 11:28:34
Edit Download
793 B lrw-r--r-- 2021-09-28 11:28:34
Edit Download
627 B lrw-r--r-- 2021-09-28 11:28:34
Edit Download
44 B lrw-r--r-- 2021-09-28 11:28:34
Edit Download
47 B lrw-r--r-- 2021-09-28 11:28:34
Edit Download
44 B lrw-r--r-- 2021-09-28 11:28:34
Edit Download
44 B lrw-r--r-- 2021-09-28 11:28:34
Edit Download
638 B lrw-r--r-- 2021-09-28 11:28:34
Edit Download
638 B lrw-r--r-- 2021-09-28 11:28:34
Edit Download
931 B lrw-r--r-- 2021-09-28 11:28:34
Edit Download
981 B lrw-r--r-- 2021-09-28 11:28:34
Edit Download
1.10 KB lrw-r--r-- 2021-09-28 11:28:34
Edit Download
342 B lrw-r--r-- 2021-09-28 11:28:34
Edit Download
457 B lrw-r--r-- 2021-09-28 11:28:34
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).