function mapObject (object, callback) {
  const clone = {}

  for (const key in object) {
    if (hasOwnProperty(object, key)) {
      clone[key] = callback(object[key])
    }
  }

  return clone
}
Apply map to all properties of an object
@param {Object} object
@param {function} callback
@return {Object} Returns a copy of the object with mapped properties