mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
more work
This commit is contained in:
27
node_modules/lodash/internal/lazyClone.js
generated
vendored
Normal file
27
node_modules/lodash/internal/lazyClone.js
generated
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
var LazyWrapper = require('./LazyWrapper'),
|
||||
arrayCopy = require('./arrayCopy');
|
||||
|
||||
/**
|
||||
* Creates a clone of the lazy wrapper object.
|
||||
*
|
||||
* @private
|
||||
* @name clone
|
||||
* @memberOf LazyWrapper
|
||||
* @returns {Object} Returns the cloned `LazyWrapper` object.
|
||||
*/
|
||||
function lazyClone() {
|
||||
var actions = this.__actions__,
|
||||
iteratees = this.__iteratees__,
|
||||
views = this.__views__,
|
||||
result = new LazyWrapper(this.__wrapped__);
|
||||
|
||||
result.__actions__ = actions ? arrayCopy(actions) : null;
|
||||
result.__dir__ = this.__dir__;
|
||||
result.__filtered__ = this.__filtered__;
|
||||
result.__iteratees__ = iteratees ? arrayCopy(iteratees) : null;
|
||||
result.__takeCount__ = this.__takeCount__;
|
||||
result.__views__ = views ? arrayCopy(views) : null;
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = lazyClone;
|
Reference in New Issue
Block a user