PageRenderTime 22ms CodeModel.GetById 15ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/node_modules/lodash/wrapperChain.js

https://bitbucket.org/coleman333/smartsite
JavaScript | 34 lines | 5 code | 2 blank | 27 comment | 0 complexity | 4f02b69f9f663c3ab5d4924b06718f0b MD5 | raw file
 1var chain = require('./chain');
 2
 3/**
 4 * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
 5 *
 6 * @name chain
 7 * @memberOf _
 8 * @since 0.1.0
 9 * @category Seq
10 * @returns {Object} Returns the new `lodash` wrapper instance.
11 * @example
12 *
13 * var users = [
14 *   { 'user': 'barney', 'age': 36 },
15 *   { 'user': 'fred',   'age': 40 }
16 * ];
17 *
18 * // A sequence without explicit chaining.
19 * _(users).head();
20 * // => { 'user': 'barney', 'age': 36 }
21 *
22 * // A sequence with explicit chaining.
23 * _(users)
24 *   .chain()
25 *   .head()
26 *   .pick('user')
27 *   .value();
28 * // => { 'user': 'barney' }
29 */
30function wrapperChain() {
31  return chain(this);
32}
33
34module.exports = wrapperChain;