1 |
3a515b92
|
cagy
|
var LazyWrapper = require('./_LazyWrapper'),
|
2 |
|
|
copyArray = require('./_copyArray');
|
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 |
|
|
module.exports = lazyClone;
|