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

Function __values

tslib.es6.js:169–179  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

167}
168
169export function __values(o) {
170 var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
171 if (m) return m.call(o);
172 if (o && typeof o.length === "number") return {
173 next: function () {
174 if (o && i >= o.length) o = void 0;
175 return { value: o && o[i++], done: !o };
176 }
177 };
178 throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
179}
180
181export function __read(o, n) {
182 var m = typeof Symbol === "function" && o[Symbol.iterator];

Callers 2

tslib.jsFile · 0.70
__asyncValuesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…