1 var baseCreate = require('./baseCreate'),
2 baseLodash = require('./baseLodash');
5 * The base constructor for creating `lodash` wrapper objects.
8 * @param {*} value The value to wrap.
9 * @param {boolean} [chainAll] Enable chaining for all wrapper methods.
10 * @param {Array} [actions=[]] Actions to peform to resolve the unwrapped value.
12 function LodashWrapper(value, chainAll, actions) {
13 this.__wrapped__ = value;
14 this.__actions__ = actions || [];
15 this.__chain__ = !!chainAll;
18 LodashWrapper.prototype = baseCreate(baseLodash.prototype);
19 LodashWrapper.prototype.constructor = LodashWrapper;
21 module.exports = LodashWrapper;