Skip to content

dateLessThan ​

dateLessThan() tests whether a Date (wrapped) is strictly before a threshold (Date wrapped or DDate.TheDate). Supports the curried version.

Interactive example ​

Syntax ​

Classic signature ​

typescript
function dateLessThan(
	primitive: Date, 
	threshold: Date | TheDate
): boolean

Curried signature ​

typescript
function dateLessThan(
	threshold: Date | TheDate
): (primitive: Date) => boolean

Parameters ​

  • primitive : wrapped Date (classic signature only).
  • threshold : comparison threshold.

Return value ​

true if primitive < threshold, otherwise false.

See also ​

Released under the MIT license.