Last change
on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
609 bytes
|
Line | |
---|
1 | var arrayLikeToArray = require("./arrayLikeToArray.js");
|
---|
2 |
|
---|
3 | function _unsupportedIterableToArray(o, minLen) {
|
---|
4 | if (!o) return;
|
---|
5 | if (typeof o === "string") return arrayLikeToArray(o, minLen);
|
---|
6 | var n = Object.prototype.toString.call(o).slice(8, -1);
|
---|
7 | if (n === "Object" && o.constructor) n = o.constructor.name;
|
---|
8 | if (n === "Map" || n === "Set") return Array.from(o);
|
---|
9 | if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
|
---|
10 | }
|
---|
11 |
|
---|
12 | module.exports = _unsupportedIterableToArray;
|
---|
13 | module.exports["default"] = module.exports, module.exports.__esModule = true; |
---|
Note:
See
TracBrowser
for help on using the repository browser.