1 var baseCreate = require('./baseCreate'),
2 baseLodash = require('./baseLodash');
4 /** Used as references for `-Infinity` and `Infinity`. */
5 var POSITIVE_INFINITY = Number.POSITIVE_INFINITY;
8 * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
11 * @param {*} value The value to wrap.
13 function LazyWrapper(value) {
14 this.__wrapped__ = value;
15 this.__actions__ = null;
17 this.__dropCount__ = 0;
18 this.__filtered__ = false;
19 this.__iteratees__ = null;
20 this.__takeCount__ = POSITIVE_INFINITY;
21 this.__views__ = null;
24 LazyWrapper.prototype = baseCreate(baseLodash.prototype);
25 LazyWrapper.prototype.constructor = LazyWrapper;
27 module.exports = LazyWrapper;