MCPcopy Create free account
hub / github.com/microsoft/SandDance / __read

Function __read

docs/app/js/sanddance-app.js:20356–20374  ·  view source on GitHub ↗
(o, n)

Source from the content-addressed store, hash-verified

20354 throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
20355}
20356function __read(o, n) {
20357 var m = typeof Symbol === "function" && o[Symbol.iterator];
20358 if (!m) return o;
20359 var i = m.call(o), r, ar = [], e;
20360 try {
20361 while((n === void 0 || n-- > 0) && !(r = i.next()).done)ar.push(r.value);
20362 } catch (error) {
20363 e = {
20364 error: error
20365 };
20366 } finally{
20367 try {
20368 if (r && !r.done && (m = i["return"])) m.call(i);
20369 } finally{
20370 if (e) throw e.error;
20371 }
20372 }
20373 return ar;
20374}
20375function __spread() {
20376 for(var ar = [], i = 0; i < arguments.length; i++)ar = ar.concat(__read(arguments[i]));
20377 return ar;

Callers 1

__spreadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected