MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / _unsupportedIterableToArray

Function _unsupportedIterableToArray

chapter18/docs/d3-graphviz.js:65–71  ·  view source on GitHub ↗
(r, a)

Source from the content-addressed store, hash-verified

63 return "symbol" == typeof i ? i : i + "";
64 }
65 function _unsupportedIterableToArray(r, a) {
66 if (r) {
67 if ("string" == typeof r) return _arrayLikeToArray(r, a);
68 var t = {}.toString.call(r).slice(8, -1);
69 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;
70 }
71 }
72
73 function extractElementData(element) {
74 var datum = {};

Callers 1

_toConsumableArrayFunction · 0.70

Calls 4

_arrayLikeToArrayFunction · 0.70
callMethod · 0.45
fromMethod · 0.45
testMethod · 0.45

Tested by

no test coverage detected