The object to convert to a Map.
A new Map object populated with the [key, value] pairs from the original object.
This function is useful when you need to convert an object to a Map data structure.
V - The type of the values in the object.
const obj = { key1: 'value1', key2: 'value2' };
const map = objToMap(obj);
map.get('key1');
//=> 'value1'
map.get('key2');
//=> 'value2'
Generated using TypeDoc
Converts an object to a Map.