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

Function _unsupportedIterableToArray$1

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

Source from the content-addressed store, hash-verified

7150 function _nonIterableSpread$1() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7151
7152 function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(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$1(o, minLen); }
7153
7154 function _iterableToArray$1(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
7155

Callers 1

_toConsumableArray$1Function · 0.85

Calls 4

_arrayLikeToArray$1Function · 0.85
callMethod · 0.65
sliceMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected