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

/**
 * This method is like `_.tap` except that it returns the result of `interceptor`.
 *
 * @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 the result of `interceptor`.
 * @example
 *
 * _('  abc  ')
 *  .chain()
 *  .trim()
 *  .thru(function(value) {
 *    return [value];
 *  })
 *  .value();
 * // => ['abc']
 */
function thru(value, interceptor, thisArg) {
  return interceptor.call(thisArg, value);
}

module.exports = thru;

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).