metadataMatches
function metadataMatches(dataSetMetadata, requestedMetadata): boolean;
Defined in: packages/synapse-sdk/src/utils/metadata.ts:112
Checks if a data set’s metadata exactly matches the requested metadata.
The data set must contain exactly the same keys and values as requested. Order doesn’t matter, but the sets must be identical.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
dataSetMetadata | Record <string , string > | The metadata from the data set |
requestedMetadata | Record <string , string > | The metadata requirements to match |
Returns
Section titled “Returns”boolean
true if metadata sets are exactly equal (same keys and values)