1 var lodash = require('./wrapperLodash');
4 * Creates a `lodash` object that wraps `value` with explicit method chaining enabled.
5 * The result of such method chaining must be unwrapped with `_#value`.
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 }
24 * return o.user + ' is ' + o.age;
28 * // => 'pebbles is 1'
30 function chain(value) {
31 var result = lodash(value);
32 result.__chain__ = true;
36 module.exports = chain;