@resistdesign/voltra
    Preparing search index...

    Function getParamsAndTestPath

    • Get the parameter values from a path string and test the path against a testPath.

      Parameters

      • path: string

        Actual path to test.

      • testPath: string

        Route pattern to match against.

      • exact: boolean = false

        Whether to require an exact match.

      Returns false | Record<string, any>

      Params object when matched, otherwise false.