1 | var _Array$from = require("@babel/runtime-corejs2/core-js/array/from");
|
2 | var arrayLikeToArray = require("./arrayLikeToArray.js");
|
3 | function _unsupportedIterableToArray(o, minLen) {
|
4 | if (!o) return;
|
5 | if (typeof o === "string") return arrayLikeToArray(o, minLen);
|
6 | var n = Object.prototype.toString.call(o).slice(8, -1);
|
7 | if (n === "Object" && o.constructor) n = o.constructor.name;
|
8 | if (n === "Map" || n === "Set") return _Array$from(o);
|
9 | if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
|
10 | }
|
11 | module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
\ | No newline at end of file |