src/require.js
function _getResolve(obj) {
  if (!obj) return settings.get('resolver');
  if (obj instanceof Resolver) return obj;
  if (obj.resolver) return obj.resolver;
  let pass = true;
  Resolver.resolveLike.forEach(property=>{pass &= (property in obj);});
  if (pass) return obj;
  return new Resolver(obj);
}
function _getResolve(obj) {
  if (!obj) return settings.get('resolver');
  if (obj instanceof Resolver) return obj;
  if (obj.resolver) return obj.resolver;
  let pass = true;
  Resolver.resolveLike.forEach(property=>{pass &= (property in obj);});
  if (pass) return obj;
  return new Resolver(obj);
}
function _getResolve ( obj ) { if ( ! obj ) return settings . get ( 'resolver' ) ; if ( obj instanceof Resolver ) return obj ; if ( obj . resolver ) return obj . resolver ; let pass = true ; Resolver . resolveLike . forEach ( property => { pass &= ( property in obj ) ; } ) ; if ( pass ) return obj ; return new Resolver ( obj ) ; }
Get the resolver object from a given object.  Assumes it has received
either an actual resolver or an options object with resolver in it.  If this
is not true then return the default resolver.

@private
@param {Object} obj    Object to get resolver from.
@returns {Object}      The resolver object.
Get the resolver object from a given object . Assumes it has received either an actual resolver or an options object with resolver in it . If this is not true then return the default resolver .