code: function resolve(deps, rem) {
      var i, length, dep, mod, result = [];
  
      for (i = 0, length = deps.length; i < length; i++) {
        dep = deps[i];
        mod = cache[dep] || rem[dep];
  
        if (!mod) {
          throw new TypeError("Module " + dep + " has not yet been loaded");
        }
  
        if (cache[dep]) {
          if (!mod.hasOwnProperty("code")) {
            mod.code = load(mod);
          }
          result[i] = mod.code;
        }
        else {
          result[i] = mod;
        }
      }
  
      return result;
    }
docs: Resolve dependencies