The use case is to convert an array of objects into a hash map based on string or function provided to evaluate and use as the key in the hash map and val
If you want to convert to the new ES6 Map do this:
var kvArray = [['key1', 'value1'], ['key2', 'value2']]; var myMap = new Map(kvArray);
Why should you use this type of Map? Well that is up to you. Take a look at this.