Skip to content

[F] getPathFromPathComponents

function getPathFromPathComponents(pathComponents): string

Formats a parsed path consisting of a root component (at index 0) and zero or more path segments (at indices > 0).

getPathFromPathComponents(["/", "path", "to", "file.ext"]) === "/path/to/file.ext"

Parameters

ParameterType
pathComponentsreadonly string[]

Returns

string