Skip to content

guards ​

Type Guards used throughout the package

Variables ​

VariableDescription
isArrayType guard to check if a value is an array
isLuxonDateTimeType guard to check if a value is a Luxon DateTime instance

Functions ​

FunctionDescription
isDateObjectUnitsType guard to check if a value is a valid Luxon DateObjectUnits object.
isInstanceOfChecks if a value is an instance of a specific class.
isPlainObjectType guard to check if a value is a plain object (not null, not array)