``` ~/go/bin/sourcemapper -output ddb -jsurl https://media.dndbeyond.com/character-app/static/js/main.90aa78c5.js ```
19 lines
588 B
JavaScript
19 lines
588 B
JavaScript
"use strict";
|
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.objectFromEntries = void 0;
|
|
exports.objectFromEntries = !Object
|
|
.fromEntries
|
|
? (entries) => {
|
|
if (!entries || !entries[Symbol.iterator]) {
|
|
throw new Error("Object.fromEntries() requires a single iterable argument");
|
|
}
|
|
const o = {};
|
|
Object.keys(entries).forEach(key => {
|
|
const [k, v] = entries[key];
|
|
o[k] = v;
|
|
});
|
|
return o;
|
|
}
|
|
: Object.fromEntries;
|