iterableToArray.js 292 B

123456
  1. import _Array$from from "../../core-js/array/from";
  2. import _isIterable from "../../core-js/is-iterable";
  3. import _Symbol from "../../core-js/symbol";
  4. export default function _iterableToArray(iter) {
  5. if (typeof _Symbol !== "undefined" && _isIterable(Object(iter))) return _Array$from(iter);
  6. }