src/internals/reactools/fetch/preProcess.js
/**
 * Pre process the corresponding fetch metadata entry with previously registered pre processors
 * @param entry - fetch metadata entry
 */
Pre process the corresponding fetch metadata entry with previously registered pre processors
@param entry - fetch metadata entry
Pre process the corresponding fetch metadata entry with previously registered pre processors @param entry - fetch metadata entry
function preProcess(entry) {
  if (!entry.preProcessors) {
    return entry;
  }
  const entryProcessors = Array.isArray(entry.preProcessors)
    ? entry.preProcessors
    : [entry.preProcessors];
  return entryProcessors.reduce((processedEntry, key) => {
    return {
      ...processedEntry,
      options: preProcessors[key](processedEntry.options) || processedEntry.options
    };
  }, entry);
}
function preProcess ( entry ) { if ( ! entry . preProcessors ) { return entry ; } const entryProcessors = Array . isArray ( entry . preProcessors ) ? entry . preProcessors : [ entry . preProcessors ] ; return entryProcessors . reduce ( ( processedEntry , key ) => { return { ... processedEntry , options : preProcessors [ key ] ( processedEntry . options ) || processedEntry . options } ; } , entry ) ; }
Pre process the corresponding fetch metadata entry with previously registered pre processors
 @param entry - fetch metadata entry
Pre process the corresponding fetch metadata entry with previously registered pre processors @param entry - fetch metadata entry