Canboat ts-pgns
    Preparing search index...

    Function isMatch

    • Determines whether a given PGN object matches all specified fields.

      Parameters

      • pgn: any

        The PGN object to check, expected to have a fields property.

      • matchFields: any

        An object containing key-value pairs to match against pgn.fields.

      Returns boolean

      true if all keys in matchFields exist in pgn.fields and have equal values; otherwise, false.