MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / _unsupportedIterableToArray

Function _unsupportedIterableToArray

misc/test-browser/mocha.js:7460–7460  ·  view source on GitHub ↗
(o, minLen)

Source from the content-addressed store, hash-verified

7458 function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7459
7460 function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
7461
7462 function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
7463

Callers 1

_toConsumableArrayFunction · 0.85

Calls 4

_arrayLikeToArrayFunction · 0.85
callMethod · 0.65
sliceMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected