src/retrieve.js
function withConfig(fn) {
  return (source, options={}) => {
    options.type = 'dom';
    options.client = options.client || rp;

    return fn(source, options);
  }
}
function withConfig(fn) {
  return (source, options={}) => {
    options.type = 'dom';
    options.client = options.client || rp;

    return fn(source, options);
  }
}
function withConfig ( fn ) { return ( source , options = { } ) => { options . type = 'dom' ; options . client = options . client || rp ; return fn ( source , options ) ; } }
Wraps the given function such that its
called with a configured options object.

@param  {function} fn The function to wrap.
@return {function} The wrapped function.
Wraps the given function such that its called with a configured options object .