Combines a base path with one or more additional path segments into a single normalized path string.
This function trims whitespace from the base path and each additional segment, replaces all backslashes
with forward slashes, and ensures that there are no duplicate or trailing slashes between segments.
Empty segments are skipped.
Parameters
base: string
The base path to start from.
...paths: string[]
Additional path segments to combine with the base path.
Combines a base path with one or more additional path segments into a single normalized path string.
This function trims whitespace from the base path and each additional segment, replaces all backslashes with forward slashes, and ensures that there are no duplicate or trailing slashes between segments. Empty segments are skipped.