main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
609 bytes
|
Rev | Line | |
---|
[d565449] | 1 | import baseCreate from './_baseCreate.js';
|
---|
| 2 | import baseLodash from './_baseLodash.js';
|
---|
| 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 | */
|
---|
| 11 | function LodashWrapper(value, chainAll) {
|
---|
| 12 | this.__wrapped__ = value;
|
---|
| 13 | this.__actions__ = [];
|
---|
| 14 | this.__chain__ = !!chainAll;
|
---|
| 15 | this.__index__ = 0;
|
---|
| 16 | this.__values__ = undefined;
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | LodashWrapper.prototype = baseCreate(baseLodash.prototype);
|
---|
| 20 | LodashWrapper.prototype.constructor = LodashWrapper;
|
---|
| 21 |
|
---|
| 22 | export default LodashWrapper;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.