iterableToArray.js 279 B

12345
  1. import _Array$from from "../../core-js/array/from";
  2. import _isIterable from "../../core-js/is-iterable";
  3. export default function _iterableToArray(iter) {
  4. if (_isIterable(Object(iter)) || Object.prototype.toString.call(iter) === "[object Arguments]") return _Array$from(iter);
  5. }