gameStatusUpdate/node_modules/@babel/helpers/lib/helpers/unsupportedIterableToArray.js
2024-09-18 08:27:46 -07:00

20 lines
727 B
JavaScript

"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