Skip to content

Commit

Permalink
Merge branch 'Saulzi-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton committed Aug 6, 2019
2 parents 0aa4c2a + 18b0b94 commit 493138d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions tslib.es6.js
Expand Up @@ -108,14 +108,15 @@ export function __exportStar(m, exports) {
}

export function __values(o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m) return m.call(o);
return {
if (o && typeof o.length === "number") return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}

export function __read(o, n) {
Expand Down
5 changes: 3 additions & 2 deletions tslib.js
Expand Up @@ -145,14 +145,15 @@ var __importDefault;
};

__values = function (o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m) return m.call(o);
return {
if (o && typeof o.length === "number") return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
};

__read = function (o, n) {
Expand Down

0 comments on commit 493138d

Please sign in to comment.