1var baseCreate = require('./baseCreate'), 2 baseLodash = require('./baseLodash'); 3 4/** 5 * The base constructor for creating `lodash` wrapper objects. 6 * 7 * @private 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. 11 */ 12function LodashWrapper(value, chainAll, actions) { 13 this.__wrapped__ = value; 14 this.__actions__ = actions || []; 15 this.__chain__ = !!chainAll; 16} 17 18LodashWrapper.prototype = baseCreate(baseLodash.prototype); 19LodashWrapper.prototype.constructor = LodashWrapper; 20 21module.exports = LodashWrapper; 22 23