function map (original, callback) {
  const obj = {}
  for (let key in original) {
    obj[key] = callback(key, original[key])
  }
  return obj
}
Function to map over an object.
@param {Object} obj An object to map over
@param {Function} callback