function flip (obj) {
  const newObj = Object.create(null)
  let key

  for (key in obj) {
    newObj[obj[key]] = key
  }

  return newObj
}
Exchanges all keys with their associated values in an object.

@param {Object.<string, string>} obj An object of strings.
@return {Object.<string, string>} An object of strings.