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

Function __values

docs/app/js/sanddance-app.js:20342–20355  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

20340 for(var p in m)if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
20341}
20342function __values(o) {
20343 var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
20344 if (m) return m.call(o);
20345 if (o && typeof o.length === "number") return {
20346 next: function() {
20347 if (o && i >= o.length) o = void 0;
20348 return {
20349 value: o && o[i++],
20350 done: !o
20351 };
20352 }
20353 };
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;

Callers 1

__asyncValuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected