Projekt

Obecné

Profil

Stáhnout (492 Bajtů) Statistiky
| Větev: | Revize:
1
import arrayLikeToArray from "./arrayLikeToArray";
2
export default function _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(n);
8
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
9
}
(77-77/80)