Sha256: e89233d003e4314ebeb7c90996e9ae9ea5da93f961ca96df4a4571252aba12fe

Contents?: true

Size: 620 Bytes

Versions: 31

Compression:

Stored size: 620 Bytes

Contents

/* */ 
"use strict";
var _isIterable = require('../core-js/is-iterable')["default"];
var _getIterator = require('../core-js/get-iterator')["default"];
exports["default"] = function(arr, i) {
  if (Array.isArray(arr)) {
    return arr;
  } else if (_isIterable(Object(arr))) {
    var _arr = [];
    for (var _iterator = _getIterator(arr),
        _step; !(_step = _iterator.next()).done; ) {
      _arr.push(_step.value);
      if (i && _arr.length === i)
        break;
    }
    return _arr;
  } else {
    throw new TypeError("Invalid attempt to destructure non-iterable instance");
  }
};
exports.__esModule = true;

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
sequenceserver-3.1.3 public/vendor/npm/babel-runtime@5.8.20/helpers/sliced-to-array-loose.js
sequenceserver-3.1.2 public/vendor/npm/babel-runtime@5.8.20/helpers/sliced-to-array-loose.js
sequenceserver-3.1.1 public/vendor/npm/babel-runtime@5.8.20/helpers/sliced-to-array-loose.js
sequenceserver-3.1.0 public/vendor/npm/babel-runtime@5.8.20/helpers/sliced-to-array-loose.js
sequenceserver-3.0.1 public/vendor/npm/babel-runtime@5.8.20/helpers/sliced-to-array-loose.js
sequenceserver-3.0 public/vendor/npm/babel-runtime@5.8.20/helpers/sliced-to-array-loose.js
sequenceserver-2.2.0 public/vendor/npm/babel-runtime@5.8.20/helpers/sliced-to-array-loose.js
sequenceserver-2.1.0 public/vendor/npm/babel-runtime@5.8.20/helpers/sliced-to-array-loose.js
sequenceserver-2.0.0 public/vendor/npm/babel-runtime@5.8.20/helpers/sliced-to-array-loose.js
sequenceserver-2.0.0.rc8 public/vendor/npm/babel-runtime@5.8.20/helpers/sliced-to-array-loose.js
sequenceserver-2.0.0.rc7 public/vendor/npm/babel-runtime@5.8.20/helpers/sliced-to-array-loose.js
sequenceserver-2.0.0.rc6 public/vendor/npm/babel-runtime@5.8.20/helpers/sliced-to-array-loose.js
sequenceserver-2.0.0.rc5 public/vendor/npm/babel-runtime@5.8.20/helpers/sliced-to-array-loose.js
sequenceserver-2.0.0.rc4 public/vendor/npm/babel-runtime@5.8.20/helpers/sliced-to-array-loose.js
sequenceserver-2.0.0.rc3 public/vendor/npm/babel-runtime@5.8.20/helpers/sliced-to-array-loose.js
sequenceserver-2.0.0.rc2 public/vendor/npm/babel-runtime@5.8.20/helpers/sliced-to-array-loose.js
sequenceserver-2.0.0.rc1 public/vendor/npm/babel-runtime@5.8.20/helpers/sliced-to-array-loose.js
sequenceserver-2.0.0.beta4 public/vendor/npm/babel-runtime@5.8.20/helpers/sliced-to-array-loose.js
sequenceserver-2.0.0.beta3 public/vendor/npm/babel-runtime@5.8.20/helpers/sliced-to-array-loose.js
sequenceserver-2.0.0.beta1 public/vendor/npm/babel-runtime@5.8.20/helpers/sliced-to-array-loose.js