function join(...paths) {
  if (paths.length === 0) return ".";
  let joined;
  for (let i = 0, len = paths.length; i < len; ++i) {
    const path = paths[i];
    assertPath(path);
    if (path.length > 0) {
      if (!joined) joined = path;
      else joined += `/${path}`;
    }
  }
  if (!joined) return ".";
  return normalize(joined);
}
/**
 * Join all given a sequence of `paths`,then normalizes the resulting path.
 * @param paths to be joined and normalized
 */
Join all given a sequence of `paths`,then normalizes the resulting path.
@param paths to be joined and normalized
Join all given a sequence of ` paths ` then normalizes the resulting path . @param paths to be joined and normalized
function join(...paths) {
  if (paths.length === 0) return ".";
  let joined;
  for (let i = 0, len = paths.length; i < len; ++i) {
    const path = paths[i];
    assertPath(path);
    if (path.length > 0) {
      if (!joined) joined = path;
      else joined += `/${path}`;
    }
  }
  if (!joined) return ".";
  return normalize(joined);
}
function join ( ... paths ) { if ( paths . length === 0 ) return "." ; let joined ; for ( let i = 0 , len = paths . length ; i < len ; ++ i ) { const path = paths [ i ] ; assertPath ( path ) ; if ( path . length > 0 ) { if ( ! joined ) joined = path ; else joined += ` ${ path } ` ; } } if ( ! joined ) return "." ; return normalize ( joined ) ; }
Join all given a sequence of `paths`,then normalizes the resulting path.
Join all given a sequence of ` paths ` then normalizes the resulting path .