MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / _unsupportedIterableToArray

Function _unsupportedIterableToArray

third_party/js/qunit/qunit.js:150–156  ·  view source on GitHub ↗
(r, a)

Source from the content-addressed store, hash-verified

148 }, _typeof(o);
149 }
150 function _unsupportedIterableToArray(r, a) {
151 if (r) {
152 if ("string" == typeof r) return _arrayLikeToArray(r, a);
153 var t = {}.toString.call(r).slice(8, -1);
154 return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
155 }
156 }
157
158 // We don't use global-this-polyfill [1], because it modifies
159 // the globals scope by default. QUnit must not affect the host context

Callers 3

_slicedToArrayFunction · 0.85
_toConsumableArrayFunction · 0.85

Calls 4

_arrayLikeToArrayFunction · 0.85
callMethod · 0.65
fromMethod · 0.45
testMethod · 0.45

Tested by

no test coverage detected