iterableToArray.js 302 B

123456789
  1. var _Array$from = require("../core-js/array/from");
  2. var _isIterable = require("../core-js/is-iterable");
  3. function _iterableToArray(iter) {
  4. if (_isIterable(Object(iter)) || Object.prototype.toString.call(iter) === "[object Arguments]") return _Array$from(iter);
  5. }
  6. module.exports = _iterableToArray;