MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / lazyClone

Function lazyClone

lib/web/jshint.js:2594–2607  ·  view source on GitHub ↗

* Creates a clone of the lazy wrapper object. * * @private * @name clone * @memberOf LazyWrapper * @returns {Object} Returns the cloned `LazyWrapper` object.

()

Source from the content-addressed store, hash-verified

2592 * @returns {Object} Returns the cloned `LazyWrapper` object.
2593 */
2594 function lazyClone() {
2595 var actions = this.__actions__,
2596 iteratees = this.__iteratees__,
2597 views = this.__views__,
2598 result = new LazyWrapper(this.__wrapped__);
2599
2600 result.__actions__ = actions ? arrayCopy(actions) : null;
2601 result.__dir__ = this.__dir__;
2602 result.__filtered__ = this.__filtered__;
2603 result.__iteratees__ = iteratees ? arrayCopy(iteratees) : null;
2604 result.__takeCount__ = this.__takeCount__;
2605 result.__views__ = views ? arrayCopy(views) : null;
2606 return result;
2607 }
2608
2609 /**
2610 * Reverses the direction of lazy iteration.

Callers

nothing calls this directly

Calls 1

arrayCopyFunction · 0.85

Tested by

no test coverage detected