mission.core
Version:
mission core
19 lines (18 loc) • 478 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class Util {
static getResponse(data, pageContext, error) {
return { data, error, pageContext };
}
static arrayOfObjectToObject(collection) {
const v = {};
for (const i of collection) {
// tslint:disable-next-line:forin
for (const j in i) {
v[j] = i[j];
}
}
return v;
}
}
exports.Util = Util;