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

    Variable pathsConst

    paths: (pattern: Pattern, haystack: Cbor) => Path[] = patternPaths

    Matches a pattern against a CBOR value and returns all matching paths.

    Type Declaration

      • (pattern: Pattern, haystack: Cbor): Path[]
      • Returns paths to matching elements in a CBOR value.

        Parameters

        • pattern: Pattern

          The pattern to match

        • haystack: Cbor

          The CBOR value to search

        Returns Path[]

        Array of paths to matching elements

    The pattern to match

    The CBOR value to search

    Array of paths to matching elements