@babel/runtime-corejs2
Version:
babel's modular runtime helpers with core-js@2 polyfilling
10 lines • 558 B
JavaScript
import _Array$from from "core-js/library/fn/array/from.js";
import arrayLikeToArray from "./arrayLikeToArray.js";
function _unsupportedIterableToArray(r, a) {
if (r) {
if ("string" == typeof r) return arrayLikeToArray(r, a);
var t = {}.toString.call(r).slice(8, -1);
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? _Array$from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;
}
}
export { _unsupportedIterableToArray as default };