Urara-Blog/node_modules/.pnpm-store/v3/files/4e/91d6df684202f3c863fd86d5f5c9625d9caa10f5a6ab800a4028507501d2a4fdefa0233b68fdc4509ddda641ea5d53d07fc83dce8f8463b84bad434cbbb7c4
2022-08-14 01:14:53 +08:00

23 lines
657 B
Text

var LazyWrapper = require('./_LazyWrapper'),
copyArray = require('./_copyArray');
/**
* Creates a clone of the lazy wrapper object.
*
* @private
* @name clone
* @memberOf LazyWrapper
* @returns {Object} Returns the cloned `LazyWrapper` object.
*/
function lazyClone() {
var result = new LazyWrapper(this.__wrapped__);
result.__actions__ = copyArray(this.__actions__);
result.__dir__ = this.__dir__;
result.__filtered__ = this.__filtered__;
result.__iteratees__ = copyArray(this.__iteratees__);
result.__takeCount__ = this.__takeCount__;
result.__views__ = copyArray(this.__views__);
return result;
}
module.exports = lazyClone;