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 | |
---|
1 | import _sliceInstanceProperty from "core-js-pure/features/instance/slice.js";
|
---|
2 | import _Array$from from "core-js-pure/features/array/from.js";
|
---|
3 | import arrayLikeToArray from "./arrayLikeToArray.js";
|
---|
4 | export 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.