Console
hyTags
Home
Home
Getting Started
Getting Started
Documentation
Documentation
url-set-path-components
Sets the path components of a URL and returns a new URL
Parameter
Type
Description
self
url
The URL to modify
components
[string]
An array of path components
return
url
A new URL with the path components updated