X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=node_modules%2Fgrunt-uncss%2Fnode_modules%2Flodash%2FwrapperChain.js;fp=node_modules%2Fgrunt-uncss%2Fnode_modules%2Flodash%2FwrapperChain.js;h=bda2ce69c97c1fdf204325be37dd3b1f19aebfac;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/node_modules/grunt-uncss/node_modules/lodash/wrapperChain.js b/node_modules/grunt-uncss/node_modules/lodash/wrapperChain.js new file mode 100644 index 000000000..bda2ce69c --- /dev/null +++ b/node_modules/grunt-uncss/node_modules/lodash/wrapperChain.js @@ -0,0 +1,34 @@ +var chain = require('./chain'); + +/** + * Creates a `lodash` wrapper instance with explicit method chain sequences enabled. + * + * @name chain + * @memberOf _ + * @since 0.1.0 + * @category Seq + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36 }, + * { 'user': 'fred', 'age': 40 } + * ]; + * + * // A sequence without explicit chaining. + * _(users).head(); + * // => { 'user': 'barney', 'age': 36 } + * + * // A sequence with explicit chaining. + * _(users) + * .chain() + * .head() + * .pick('user') + * .value(); + * // => { 'user': 'barney' } + */ +function wrapperChain() { + return chain(this); +} + +module.exports = wrapperChain;