Initial commit
[yaffs-website] / node_modules / grunt-contrib-watch / node_modules / lodash / chain / wrapperChain.js
1 var chain = require('./chain');
2
3 /**
4  * Enables explicit method chaining on the wrapper object.
5  *
6  * @name chain
7  * @memberOf _
8  * @category Chain
9  * @returns {Object} Returns the new `lodash` wrapper instance.
10  * @example
11  *
12  * var users = [
13  *   { 'user': 'barney', 'age': 36 },
14  *   { 'user': 'fred',   'age': 40 }
15  * ];
16  *
17  * // without explicit chaining
18  * _(users).first();
19  * // => { 'user': 'barney', 'age': 36 }
20  *
21  * // with explicit chaining
22  * _(users).chain()
23  *   .first()
24  *   .pick('user')
25  *   .value();
26  * // => { 'user': 'barney' }
27  */
28 function wrapperChain() {
29   return chain(this);
30 }
31
32 module.exports = wrapperChain;