function flipObject(targetObject) {
  const result = {};

  Object.keys(targetObject).forEach((key) => {
    result[targetObject[key]] = key;
  });

  return result;
}
Object key value flip
@param {Object} targetObject - The data object of the key value.
@returns {Object}