Sha256: 12b3c313a32cf1f940226bb6f2ac728f79a2619b8634e4bbcba17f3464628d43
Contents?: true
Size: 638 Bytes
Versions: 167
Compression:
Stored size: 638 Bytes
Contents
var chain = require('./chain'); /** * Enables explicit method chaining on the wrapper object. * * @name chain * @memberOf _ * @category Chain * @returns {Object} Returns the new `lodash` wrapper instance. * @example * * var users = [ * { 'user': 'barney', 'age': 36 }, * { 'user': 'fred', 'age': 40 } * ]; * * // without explicit chaining * _(users).first(); * // => { 'user': 'barney', 'age': 36 } * * // with explicit chaining * _(users).chain() * .first() * .pick('user') * .value(); * // => { 'user': 'barney' } */ function wrapperChain() { return chain(this); } module.exports = wrapperChain;
Version data entries
167 entries across 87 versions & 9 rubygems