Skip to content

Function: joinUrl()

joinUrl(...tokens): string

Defined in: helpers/url.ts:47

Joins all the tokens into a single URL string separated by '/'. Zero length tokens cause errors.

Parameters

Parameter Type Description
...tokens string[] Zero or more tokens to be combined. If token doesn't end with '/', one will be added as the separator

Returns

string