Initial commit
[yaffs-website] / node_modules / grunt-contrib-watch / node_modules / lodash / internal / LodashWrapper.js
1 var 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  */
12 function LodashWrapper(value, chainAll, actions) {
13   this.__wrapped__ = value;
14   this.__actions__ = actions || [];
15   this.__chain__ = !!chainAll;
16 }
17
18 LodashWrapper.prototype = baseCreate(baseLodash.prototype);
19 LodashWrapper.prototype.constructor = LodashWrapper;
20
21 module.exports = LodashWrapper;