getDeletedValues = (deletedFields, accumulator = {}) =>
  deletedFields.reduce((deletedValues, path) => set(deletedValues, path, null), accumulator)
Converts a list of field names to an object of deleted values.

@param {string[]|Object.<string|string>} deletedFields
 List of deleted field names or paths
@param {Object|Array=} accumulator={}
 Value to reduce the values to
@return {Object|Array}
 Deleted values, with the structure defined by taking the received deleted
 fields as paths
@example
 const deletedFields = [
   'field.subField',
   'field.subFieldArray[0]',
   'fieldArray[0]',
   'fieldArray[2].name',
 ];
 getNestedDeletedValues(deletedFields);
 // => { 'field': { 'subField': null, 'subFieldArray': [null] }, 'fieldArray': [null, undefined, { name: null } }