HEX
Server: LiteSpeed
System: Linux server.zepintelhosting.com 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: enamadmin (1026)
PHP: 8.2.30
Disabled: exec,system,passthru,shell_exec,proc_open,popen,apache_child_terminate
Upload Files
File: /home/enamadmin/moodledata/filedir/47/36/47366b537f698dc9463aff58df7c80d512e15dec
/*
	MIT License http://www.opensource.org/licenses/mit-license.php
*/

"use strict";

/**
 * Convert an object into an ES6 map
 *
 * @param {object} obj any object type that works with Object.entries()
 * @returns {Map<string, any>} an ES6 Map of KV pairs
 */
module.exports = function objectToMap(obj) {
	return new Map(Object.entries(obj));
};