source: node_modules/@babel/runtime-corejs3/helpers/esm/unsupportedIterableToArray.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 697 bytes
Line 
1import _sliceInstanceProperty from "core-js-pure/features/instance/slice.js";
2import _Array$from from "core-js-pure/features/array/from.js";
3import arrayLikeToArray from "./arrayLikeToArray.js";
4export default function _unsupportedIterableToArray(o, minLen) {
5 var _context;
6 if (!o) return;
7 if (typeof o === "string") return arrayLikeToArray(o, minLen);
8 var n = _sliceInstanceProperty(_context = Object.prototype.toString.call(o)).call(_context, 8, -1);
9 if (n === "Object" && o.constructor) n = o.constructor.name;
10 if (n === "Map" || n === "Set") return _Array$from(o);
11 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
12}
Note: See TracBrowser for help on using the repository browser.