MCPcopy Create free account
hub / github.com/caike/jQuery-Simple-Timer / toConsumableArray

Function toConsumableArray

tests/qunit-2.9.2.js:134–142  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

132
133
134 var toConsumableArray = function (arr) {
135 if (Array.isArray(arr)) {
136 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
137
138 return arr2;
139 } else {
140 return Array.from(arr);
141 }
142 };
143
144 var toString = Object.prototype.toString;
145 var hasOwn = Object.prototype.hasOwnProperty;

Callers 4

emitFunction · 0.85
addToTaskQueueFunction · 0.85
runTestFunction · 0.85
collectTestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected