The URL for which the pathname segments need to be retrieved.
A Result
object with either an array of strings representing the path segments if the
given URL is valid, or an Error
object if the given URL is not valid.
Generated using TypeDoc v0.24.7
Retrieves the segments of the pathname from a given URL as an array of strings.
Example
Example
Handle an invalid input: