Determines whether a given PGN object matches all specified fields.
The PGN object to check, expected to have a fields property.
fields
An object containing key-value pairs to match against pgn.fields.
pgn.fields
true if all keys in matchFields exist in pgn.fields and have equal values; otherwise, false.
true
matchFields
false
Determines whether a given PGN object matches all specified fields.