Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80742 views
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__ = null;
16
this.__dir__ = 1;
17
this.__dropCount__ = 0;
18
this.__filtered__ = false;
19
this.__iteratees__ = null;
20
this.__takeCount__ = POSITIVE_INFINITY;
21
this.__views__ = null;
22
}
23
24
LazyWrapper.prototype = baseCreate(baseLodash.prototype);
25
LazyWrapper.prototype.constructor = LazyWrapper;
26
27
module.exports = LazyWrapper;
28
29