Skip to content

Variable: isLuxonDateTime()

ts
const isLuxonDateTime: (value: unknown) => value is DateTime;

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

Parameters

ParameterTypeDescription
valueunknownThe value to check

Returns

value is DateTime

True if the value is a Luxon DateTime, false otherwise