Skip to main content
Version: Next 🚧

[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

ParameterType
componentsreadonly string[]

Returns

string[]