const mp = new Map([
['str', 'typescript'],
['obj', {id: 1245, country: 'uk'}],
]);
console.log([...mp.entries()]);
console.log([mp.get('obj')]);
console.log([mp.get('obj').id]);
console.log([mp.get('obj').country]);
/*
run:
[ [ 'str', 'typescript' ], [ 'obj', { id: 1245, country: 'uk' } ] ]
[ { id: 1245, country: 'uk' } ]
[ 1245 ]
[ 'uk' ]
*/