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
| Parameter | Type | Description |
|---|---|---|
value | unknown | the token value |
constraints | Constraints | the constraint |
Returns
boolean
true if the constraint matches or false if not