How to create an object using map function?

javascript map object
javascript key, value map
javascript map foreach
hashmap in javascript
javascript map values to array
angular map function
javascript reduce
javascript map vs object