function makeInverseMap(map) {
  var reversed = {};
  for (var key in map)
    reversed[map[key]] = key;
  return reversed;
}
/**
 * Returns a new map with the keys and values of the input map inverted.
 * @param {!Object} map The object to have its keys and values reversed.  Not
 *     modified by the function call.
 * @return {Object} The new map with the reversed keys and values.
 */
Returns a new map with the keys and values of the input map inverted.
@param {!Object} map The object to have its keys and values reversed.  Not
modified by the function call.
@return {Object} The new map with the reversed keys and values.
Returns a new map with the keys and values of the input map inverted . @param { !Object } map The object to have its keys and values reversed . Not modified by the function call . @return { Object } The new map with the reversed keys and values .
function makeInverseMap(map) {
  var reversed = {};
  for (var key in map)
    reversed[map[key]] = key;
  return reversed;
}
function makeInverseMap ( map ) { var reversed = { } ; for ( var key in map ) reversed [ map [ key ] ] = key ; return reversed ; }
Returns a new map with the keys and values of the input map inverted.
Returns a new map with the keys and values of the input map inverted .