Skip to content

Instantly share code, notes, and snippets.

@itsMapleLeaf
Created January 22, 2018 09:13
Show Gist options
  • Save itsMapleLeaf/d6448f1a239f64345fd9764a1bc2d4e4 to your computer and use it in GitHub Desktop.
Save itsMapleLeaf/d6448f1a239f64345fd9764a1bc2d4e4 to your computer and use it in GitHub Desktop.
"use strict";
var __values = (this && this.__values) || function (o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
if (m) return m.call(o);
return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
};
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
var map = new Map();
try {
for (var map_1 = __values(map), map_1_1 = map_1.next(); !map_1_1.done; map_1_1 = map_1.next()) {
var _a = __read(map_1_1.value, 2), key = _a[0], value = _a[1];
console.log(key, value);
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (map_1_1 && !map_1_1.done && (_b = map_1.return)) _b.call(map_1);
}
finally { if (e_1) throw e_1.error; }
}
var e_1, _b;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment