Skip to content

Function: toRelativeSegment()

toRelativeSegment(input): string

Drop a leading ~ and any leading separators, so an absolute-looking or home-relative input can be joined UNDER a base rather than replacing it.

string

string