Documentation
    Preparing search index...
    • Match a given URI with an array of patterns and extract the params from the URL. Null value is returned in case of no match

      Parameters

      • url: string

        The URL to match

      • patterns: string[]

        Array of route patterns to match against

      Returns null | Record<string, string>

      Extracted parameters or null if no match