Sha256: 857c570c6181cdeb1cb465dce3fb68c7568f58e37f9a37a46476b2646646ffa8

Contents?: true

Size: 383 Bytes

Versions: 9

Compression:

Stored size: 383 Bytes

Contents

export default 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;
}

Version data entries

9 entries across 9 versions & 3 rubygems

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