Skip to content

Variable: isLuxonDuration() ​

ts
const isLuxonDuration: (value: unknown) => value is Duration;

Type guard to check if a value is a Luxon Duration instance

Parameters ​

ParameterTypeDescription
valueunknownThe value to check

Returns ​

value is Duration

True if the value is a Luxon Duration, false otherwise