[F] reducePathComponents
function reducePathComponents(components): string[]
Reduce an array of path components to a more simplified path by navigating any
"."
or ".."
entries in the path.
Parameters
Parameter | Type |
---|---|
components | readonly string [] |
Returns
string
[]