UNPKG

mission.core

Version:
19 lines (18 loc) 478 B
"use strict"; 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;