source: node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js@ d24f17c

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

Initial commit

  • Property mode set to 100644
File size: 607 bytes
Line 
1var arrayLikeToArray = require("./arrayLikeToArray.js");
2function _unsupportedIterableToArray(o, minLen) {
3 if (!o) return;
4 if (typeof o === "string") return arrayLikeToArray(o, minLen);
5 var n = Object.prototype.toString.call(o).slice(8, -1);
6 if (n === "Object" && o.constructor) n = o.constructor.name;
7 if (n === "Map" || n === "Set") return Array.from(o);
8 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
9}
10module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
Note: See TracBrowser for help on using the repository browser.