dCBOR Pattern TypeScript - v1.0.0-alpha.20
    Preparing search index...

    Variable patternPathsWithCapturesConst

    patternPathsWithCaptures: (pattern: Pattern, haystack: Cbor) => MatchResult = pathsWithCaptures

    Alias for pathsWithCaptures for internal VM use.

    Type Declaration

      • (pattern: Pattern, haystack: Cbor): MatchResult
      • Matches a pattern against a CBOR value and returns paths with captures.

        Parameters

        • pattern: Pattern

          The pattern to match

        • haystack: Cbor

          The CBOR value to search

        Returns MatchResult

        Match result with paths and captures