You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
727 B
19 lines
727 B
"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
|