mbti-rengeceshi/@babel/runtime/helpers/unsupportedIterableToArray.js

9 lines
422 B
JavaScript
Raw Permalink Normal View History

2024-03-31 23:41:58 +08:00
var r = require("./arrayLikeToArray");
module.exports = function(t, e) {
if (t) {
if ("string" == typeof t) return r(t, e);
var o = Object.prototype.toString.call(t).slice(8, -1);
return "Object" === o && t.constructor && (o = t.constructor.name), "Map" === o || "Set" === o ? Array.from(t) : "Arguments" === o || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o) ? r(t, e) : void 0;
}
};