Skip to content

Theemo / @theemo/tokens / isDuration

Function: isDuration()

ts
function isDuration(token): boolean;

Defined in: packages/tokens/src/filters/is-duration.ts:9

Checks whether the token is a duration

Parameters

ParameterTypeDescription
tokenTokenthe token

Returns

boolean

true if the token is a duration or false if not