main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 16 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
815 bytes
|
Line | |
---|
1 | var _sliceInstanceProperty = require("core-js-pure/features/instance/slice.js");
|
---|
2 | var _Array$from = require("core-js-pure/features/array/from.js");
|
---|
3 | var arrayLikeToArray = require("./arrayLikeToArray.js");
|
---|
4 | 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 | }
|
---|
13 | module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
---|
Note:
See
TracBrowser
for help on using the repository browser.