30 lines
846 B
JavaScript
30 lines
846 B
JavaScript
// Metro module 5419 (f5420).
|
|
import * as __arrayLikeToArray from "./_arrayLikeToArray_5420";
|
|
module.exports = function _unsupportedIterableToArray(a0, a1) {
|
|
let r22;
|
|
if (a0) {
|
|
if (typeof a0 === "string") {
|
|
return __arrayLikeToArray(a0, a1);
|
|
}
|
|
const r12 = ({}).toString.call(a0).slice(8, -1);
|
|
const r8 = r12 === "Object" && a0.constructor ? a0.constructor.name : r12;
|
|
L17: {
|
|
if (r8 !== "Map" && r8 !== "Set") {
|
|
if (r8 !== "Arguments") {
|
|
const r21 = /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r8);
|
|
r22 = void 0;
|
|
if (!r21) {
|
|
break L17;
|
|
}
|
|
}
|
|
r22 = __arrayLikeToArray(a0, a1);
|
|
} else {
|
|
r22 = Array.from(a0);
|
|
}
|
|
}
|
|
return r22;
|
|
}
|
|
};
|
|
module.exports.__esModule = true;
|
|
module.exports.default = module.exports;
|