Sha256: 305410ac439fc43d44d63c9b0b29b251e53554746048afcb241163e03b494c10

Contents?: true

Size: 414 Bytes

Versions: 9

Compression:

Stored size: 414 Bytes

Contents

function _iterableToArrayLimitLoose(arr, i) {
  if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
    return;
  }

  var _arr = [];

  for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) {
    _arr.push(_step.value);

    if (i && _arr.length === i) break;
  }

  return _arr;
}

module.exports = _iterableToArrayLimitLoose;

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
disco_app-0.18.0 test/dummy/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js
disco_app-0.18.2 test/dummy/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js
enju_library-0.3.8 spec/dummy/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js
condenser-0.2 lib/condenser/processors/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js
condenser-0.1 lib/condenser/processors/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js
condenser-0.0.12 lib/condenser/processors/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js
condenser-0.0.11 lib/condenser/processors/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js
condenser-0.0.10 lib/condenser/processors/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js
condenser-0.0.9 lib/condenser/processors/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js