Skip to content

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.

ParameterTypeDescription
dataSetMetadataRecord<string, string>The metadata from the data set
requestedMetadataRecord<string, string>The metadata requirements to match

boolean

true if metadata sets are exactly equal (same keys and values)