Skip to content

Theemo / @theemo/tokens / matchesConstrainedValue

Function: matchesConstrainedValue()

ts
function matchesConstrainedValue(value, constraints): boolean;

Defined in: packages/tokens/src/filters/matches-constrained-value.ts:41

Checks whether a token value matches the given constraint

Parameters

ParameterTypeDescription
valueunknownthe token value
constraintsPartialthe constraint

Returns

boolean

true if the constraint matches or false if not