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
immosquare-cleaner-0.1.27 node_modules/lodash/_lazyReverse.js
immosquare-cleaner-0.1.26 node_modules/lodash/_lazyReverse.js
immosquare-cleaner-0.1.25 node_modules/lodash/_lazyReverse.js
immosquare-cleaner-0.1.24 node_modules/lodash/_lazyReverse.js
immosquare-cleaner-0.1.23 node_modules/lodash/_lazyReverse.js
sumomo-0.10.4 data/sumomo/api_modules/node_modules/lodash/_lazyReverse.js
sumomo-0.10.3 data/sumomo/api_modules/node_modules/lodash/_lazyReverse.js
sumomo-0.10.2 data/sumomo/api_modules/node_modules/lodash/_lazyReverse.js
sumomo-0.10.1 data/sumomo/api_modules/node_modules/lodash/_lazyReverse.js
sumomo-0.10.0 data/sumomo/api_modules/node_modules/lodash/_lazyReverse.js
reed_sdk-1.0.1 node_modules/lodash/_lazyReverse.js
reed_sdk-1.0.0 node_modules/lodash/_lazyReverse.js
boring_generators-0.12.0 tmp/templates/app_template/node_modules/lodash/_lazyReverse.js
sumomo-0.9.0 data/sumomo/api_modules/node_modules/lodash/_lazyReverse.js
sumomo-0.8.22 data/sumomo/api_modules/node_modules/lodash/_lazyReverse.js
sumomo-0.8.21 data/sumomo/api_modules/node_modules/lodash/_lazyReverse.js
sumomo-0.8.20 data/sumomo/api_modules/node_modules/lodash/_lazyReverse.js
sumomo-0.8.17 data/sumomo/api_modules/node_modules/lodash/_lazyReverse.js
sumomo-0.8.16 data/sumomo/api_modules/node_modules/lodash/_lazyReverse.js
disco_app-0.18.0 test/dummy/node_modules/lodash/_lazyReverse.js