Initial commit
[yaffs-website] / node_modules / grunt-contrib-watch / node_modules / lodash / internal / LazyWrapper.js
1 var baseCreate = require('./baseCreate'),
2     baseLodash = require('./baseLodash');
3
4 /** Used as references for `-Infinity` and `Infinity`. */
5 var POSITIVE_INFINITY = Number.POSITIVE_INFINITY;
6
7 /**
8  * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
9  *
10  * @private
11  * @param {*} value The value to wrap.
12  */
13 function LazyWrapper(value) {
14   this.__wrapped__ = value;
15   this.__actions__ = [];
16   this.__dir__ = 1;
17   this.__filtered__ = false;
18   this.__iteratees__ = [];
19   this.__takeCount__ = POSITIVE_INFINITY;
20   this.__views__ = [];
21 }
22
23 LazyWrapper.prototype = baseCreate(baseLodash.prototype);
24 LazyWrapper.prototype.constructor = LazyWrapper;
25
26 module.exports = LazyWrapper;