UNPKG

@n3okill/utils

Version:
16 lines 382 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fromMap = fromMap; /** * Transforms Map into Object * @param map Map to transform * @returns The object resultant from the Map */ function fromMap(map) { const obj = {}; for (const [key, val] of map) { obj[key] = val; } return obj; } //# sourceMappingURL=fromMap.js.map