iterableToArray.js 395 B

123456
  1. import _Symbol from "@babel/runtime-corejs3/core-js/symbol";
  2. import _getIteratorMethod from "@babel/runtime-corejs3/core-js/get-iterator-method";
  3. import _Array$from from "@babel/runtime-corejs3/core-js/array/from";
  4. export default function _iterableToArray(iter) {
  5. if (typeof _Symbol !== "undefined" && _getIteratorMethod(iter) != null || iter["@@iterator"] != null) return _Array$from(iter);
  6. }