source: trip-planner-front/node_modules/lodash/_LazyWrapper.js@ 188ee53

Last change on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 773 bytes
Line 
1var baseCreate = require('./_baseCreate'),
2 baseLodash = require('./_baseLodash');
3
4/** Used as references for the maximum length and index of an array. */
5var MAX_ARRAY_LENGTH = 4294967295;
6
7/**
8 * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
9 *
10 * @private
11 * @constructor
12 * @param {*} value The value to wrap.
13 */
14function LazyWrapper(value) {
15 this.__wrapped__ = value;
16 this.__actions__ = [];
17 this.__dir__ = 1;
18 this.__filtered__ = false;
19 this.__iteratees__ = [];
20 this.__takeCount__ = MAX_ARRAY_LENGTH;
21 this.__views__ = [];
22}
23
24// Ensure `LazyWrapper` is an instance of `baseLodash`.
25LazyWrapper.prototype = baseCreate(baseLodash.prototype);
26LazyWrapper.prototype.constructor = LazyWrapper;
27
28module.exports = LazyWrapper;
Note: See TracBrowser for help on using the repository browser.