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:
655 bytes
|
Line | |
---|
1 | import LazyWrapper from './_LazyWrapper.js';
|
---|
2 | import copyArray from './_copyArray.js';
|
---|
3 |
|
---|
4 | /**
|
---|
5 | * Creates a clone of the lazy wrapper object.
|
---|
6 | *
|
---|
7 | * @private
|
---|
8 | * @name clone
|
---|
9 | * @memberOf LazyWrapper
|
---|
10 | * @returns {Object} Returns the cloned `LazyWrapper` object.
|
---|
11 | */
|
---|
12 | function lazyClone() {
|
---|
13 | var result = new LazyWrapper(this.__wrapped__);
|
---|
14 | result.__actions__ = copyArray(this.__actions__);
|
---|
15 | result.__dir__ = this.__dir__;
|
---|
16 | result.__filtered__ = this.__filtered__;
|
---|
17 | result.__iteratees__ = copyArray(this.__iteratees__);
|
---|
18 | result.__takeCount__ = this.__takeCount__;
|
---|
19 | result.__views__ = copyArray(this.__views__);
|
---|
20 | return result;
|
---|
21 | }
|
---|
22 |
|
---|
23 | export default lazyClone;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.