Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/core/url/concat

Index

Functions

  • concatURLs(...urls: Nullable<string>[]): string
  • Concatenates the specified parts of URL-s with correctly arranging of slashes and returns a new string

    example
    // 'foo/baz/bar/bla'
    concatURLs('foo/baz', '/bar', 'bla');

    // 'http://foo.bar/bla'
    concatURLs('http://foo.bar', 'bla');

    Parameters

    Returns string

  • concatUrls(...urls: Nullable<string>[]): string