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

    Variable matchesConst

    matches: (pattern: Pattern, haystack: Cbor) => boolean = patternMatches

    Checks if a pattern matches a CBOR value.

    Type Declaration

      • (pattern: Pattern, haystack: Cbor): boolean
      • Tests if a pattern matches a CBOR value.

        Parameters

        • pattern: Pattern

          The pattern to match

        • haystack: Cbor

          The CBOR value to test

        Returns boolean

        true if the pattern matches

    The pattern to match

    The CBOR value to test

    true if the pattern matches