UNPKG

@n3okill/utils

Version:
14 lines 312 B
/** * Transform object to Map * @param obj The object to transform * @returns Map from the object */ export function toMap(obj = {}) { const map = new Map(); const o = obj; Object.keys(o).forEach((key) => { map.set(key, o[key]); }); return map; } //# sourceMappingURL=toMap.js.map