Skip to content

Theemo / @theemo/tokens / isDuration

Function: isDuration()

ts
function isDuration(token): boolean

Checks whether the token is a duration

Parameters

ParameterTypeDescription
tokenToken<"unknown">the token

Returns

boolean

true if the token is a duration or false if not

Defined in

packages/@theemo/tokens/src/filters/is-duration.ts:9