Sha256: 03b1c25da23e238ceb276999e02685a7d188e95a11309cf48de424e69529dc18

Contents?: true

Size: 491 Bytes

Versions: 300

Compression:

Stored size: 491 Bytes

Contents

var LazyWrapper = require('./_LazyWrapper');

/**
 * Reverses the direction of lazy iteration.
 *
 * @private
 * @name reverse
 * @memberOf LazyWrapper
 * @returns {Object} Returns the new reversed `LazyWrapper` object.
 */
function lazyReverse() {
  if (this.__filtered__) {
    var result = new LazyWrapper(this);
    result.__dir__ = -1;
    result.__filtered__ = true;
  } else {
    result = this.clone();
    result.__dir__ *= -1;
  }
  return result;
}

module.exports = lazyReverse;

Version data entries

300 entries across 276 versions & 32 rubygems

Version Path
disco_app-0.18.2 test/dummy/node_modules/lodash/_lazyReverse.js
sumomo-0.8.15 data/sumomo/api_modules/node_modules/lodash/_lazyReverse.js
trusty-cms-5.0.7 node_modules/lodash/_lazyReverse.js
appmap-0.72.2 ./node_modules/lodash/_lazyReverse.js
trusty-cms-5.0.6 node_modules/lodash/_lazyReverse.js
appmap-0.72.1 ./node_modules/lodash/_lazyReverse.js
appmap-0.72.0 ./node_modules/lodash/_lazyReverse.js
trusty-cms-5.0.5 node_modules/lodash/_lazyReverse.js
trusty-cms-5.0.4 node_modules/lodash/_lazyReverse.js
appmap-0.71.0 ./node_modules/lodash/_lazyReverse.js
disco_app-0.16.1 test/dummy/node_modules/lodash/_lazyReverse.js
appmap-0.70.2 ./node_modules/lodash/_lazyReverse.js
sumomo-0.8.14 data/sumomo/api_modules/node_modules/lodash/_lazyReverse.js
appmap-0.70.1 ./node_modules/lodash/_lazyReverse.js
appmap-0.70.0 ./node_modules/lodash/_lazyReverse.js
appmap-0.69.0 ./node_modules/lodash/_lazyReverse.js
sumomo-0.8.13 data/sumomo/api_modules/node_modules/lodash/_lazyReverse.js
appmap-0.68.2 ./node_modules/lodash/_lazyReverse.js
appmap-0.68.1 ./node_modules/lodash/_lazyReverse.js
disco_app-0.15.2 test/dummy/node_modules/lodash/_lazyReverse.js