blob: c1e4d9df762b40b0c225fd6c837eb2e26b944a36 [file] [log] [blame]
Yang Guo4fd355c2019-09-19 08:59:031var baseCreate = require('./_baseCreate'),
2 baseLodash = require('./_baseLodash');
3
4/**
5 * The base constructor for creating `lodash` wrapper objects.
6 *
7 * @private
8 * @param {*} value The value to wrap.
9 * @param {boolean} [chainAll] Enable explicit method chain sequences.
10 */
11function LodashWrapper(value, chainAll) {
12 this.__wrapped__ = value;
13 this.__actions__ = [];
14 this.__chain__ = !!chainAll;
15 this.__index__ = 0;
16 this.__values__ = undefined;
17}
18
19LodashWrapper.prototype = baseCreate(baseLodash.prototype);
20LodashWrapper.prototype.constructor = LodashWrapper;
21
22module.exports = LodashWrapper;