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

    Function patternMatches

    • 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