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

var lodash = require('./lodash');

/**
 * Creates a `lodash` object that wraps `value` with explicit method
 * chaining enabled.
 *
 * @static
 * @memberOf _
 * @category Chain
 * @param {*} value The value to wrap.
 * @returns {Object} Returns the new `lodash` wrapper instance.
 * @example
 *
 * var users = [
 *   { 'user': 'barney',  'age': 36 },
 *   { 'user': 'fred',    'age': 40 },
 *   { 'user': 'pebbles', 'age': 1 }
 * ];
 *
 * var youngest = _.chain(users)
 *   .sortBy('age')
 *   .map(function(chr) {
 *     return chr.user + ' is ' + chr.age;
 *   })
 *   .first()
 *   .value();
 * // => 'pebbles is 1'
 */
function chain(value) {
  var result = lodash(value);
  result.__chain__ = true;
  return result;
}

module.exports = chain;

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