Security update for Core, with self-updated composer
[yaffs-website] / node_modules / grunt-legacy-util / node_modules / lodash / _LazyWrapper.js
1 var baseCreate = require('./_baseCreate'),
2     baseLodash = require('./_baseLodash');
3
4 /** Used as references for the maximum length and index of an array. */
5 var MAX_ARRAY_LENGTH = 4294967295;
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__ = MAX_ARRAY_LENGTH;
20   this.__views__ = [];
21 }
22
23 LazyWrapper.prototype = baseCreate(baseLodash.prototype);
24 LazyWrapper.prototype.constructor = LazyWrapper;
25
26 module.exports = LazyWrapper;