1 var lodash = require('./lodash');
4 * Creates a `lodash` object that wraps `value` with explicit method
10 * @param {*} value The value to wrap.
11 * @returns {Object} Returns the new `lodash` wrapper instance.
15 * { 'user': 'barney', 'age': 36 },
16 * { 'user': 'fred', 'age': 40 },
17 * { 'user': 'pebbles', 'age': 1 }
20 * var youngest = _.chain(users)
22 * .map(function(chr) {
23 * return chr.user + ' is ' + chr.age;
27 * // => 'pebbles is 1'
29 function chain(value) {
30 var result = lodash(value);
31 result.__chain__ = true;
35 module.exports = chain;