12345678910111213141516171819 |
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = _unsupportedIterableToArray;
- var _arrayLikeToArray = require("./arrayLikeToArray.js");
- function _unsupportedIterableToArray(o, minLen) {
- if (!o) return;
- if (typeof o === "string") return (0, _arrayLikeToArray.default)(o, minLen);
- var name = Object.prototype.toString.call(o).slice(8, -1);
- if (name === "Object" && o.constructor) name = o.constructor.name;
- if (name === "Map" || name === "Set") return Array.from(o);
- if (name === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(name)) {
- return (0, _arrayLikeToArray.default)(o, minLen);
- }
- }
- //# sourceMappingURL=unsupportedIterableToArray.js.map
|