Function isSamePath

  • Returns whether the given paths are the same, without leading, trailing or doubled slashes and also removing the dot sections.

    Parameters

    • path1: string
    • path2: string

    Returns boolean