code: function resolve() {
      var resolvedPath = '';
      var resolvedAbsolute = false;
      var hasDomain = false;
  
      for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i -= 1) {
        var p = (i >= 0) ? arguments[i] : !hasDomain ? cwd() : '';
  
        if (!hasDomain) {
          hasDomain = isDomain(p);
        }
  
        if (!isString(p)) {
          throw new TypeError('Arguments to path.resolve must be strings');
        } else if (!p) {
          continue;
        }
  
        resolvedPath = p + '/' + resolvedPath;
        resolvedAbsolute = p[0] === '/';
      }
  
      resolvedPath = normalizeArray(resolvedPath.split('/'), !resolvedAbsolute).join('/');
      return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
    }
docs: resolve
  @param {String} [from ...]
  @param {String} to